add this to page to show the ad:
Code:
<script type='text/javascript' src='http://myServer.com/ad1.js'></script>
inside ad1.js:
Code:
function dumpAd(){
var ad="\
<div onclick='window.open(\"http://myServer.com/ad1.htm\")' style='cursor:pointer;'> \
<b>Save up to 80%</b><br /> \
Order some of our stuff by May 01, and receive a <u>big</u> discount. </div> \
"; //end ad HTML
document.write(ad);
}
dumpAd();
note that to encode HTML, you must use \" instead of just ", and add a \ to the very end of each line.
Bookmarks