How to cover a banner on a free hosting package

Status
Not open for further replies.

David Lindon

Golden Master
Messages
15,233
Make sure you adverts are set to popups.
On your HTML page, insert:
<script language="Javascript">
<!--
function cover{
document.write("put your real site's code in here");
}
cover()
//-->
</script>
If you need to use quotes/apostraphes etc then you must escape them. E.g. \" \' etc.


It is that simple!
The only data that will be written on the page is that which you put in the document.write(""); function.
 
dude that ddint work

and when u mean put your real site's code in here is that suppose to be my html
 
<html>
<body onload="cover()">
<script language="Javascript">
<!--
function cover{
document.write("put your real site's code in here");
}
//-->
</script>

Here is the revised code. Remember that you must escape quotes \" form in the document.write() command.
 
So you view your site in your browser..View source...copy the auto banner insertation code and the place it in (" ") Without the parentheses?
 
Status
Not open for further replies.
Back
Top Bottom