Rotate banners. Red number is how many banners, the blue number is duration. All other settings are in bold. This entire script goes in the body of your page.


<SCRIPT LANGUAGE="JavaScript">
var how_many_ads = 5;
var now = new Date()
var sec = now.getSeconds()
var ad = sec % how_many_ads;
ad +=1;
if (ad==1) {
txt="Some Text";
url="http://www.someurl.com/somepage.htm";
alt="www.someurl.com";
banner="banner1.gif";
width="450";
height="60";
}
if (ad==2) {
txt="Some Text";
url="http://www.someurl.com/somepage.htm";
alt="www.someurl.com";
banner="banner2.gif";
width="450";
height="60";
}
if (ad==3) {
txt="Some More Text";
url="http://www.someurl.com/somepage.htm";
alt="www.someurl.com";
banner="banner3.gif";
width="450";
height="60";
}
if (ad==4) {
txt="Some More Text";
url="http://www.someurl.com/somepage.htm";
alt="www.someurl.com";
banner="banner4.gif";
width="450";
height="60";
}
if (ad==5) {
txt="More Text";
url="http://www.someurl.com/somepage.htm";
alt="www.someurl.com";
banner="banner5.gif";
width="450";
height="60";
}
document.write('<center>');
document.write('<a href=\"' + url + '\" target=\"_top\">');
document.write('<img src=\"' + banner + '\" width=')
document.write(width + ' height=' + height + ' ');
document.write('alt=\"' + alt + '\" border=0><br>');
document.write('<small>' + txt + '</small></a>');
document.write('</center>');
</SCRIPT>

Back