Showing Visitor Messages 1 to 1 of 1
-
Allstar, I was wondering if you could help me with something??
You posted the script needed to perform a simple banner ad rotation. I've been using it for some time now (thank you). My question is, do you know how to exit the script so that more then 60 banners can be rotated? In the script it calls for "60 seconds", which limits the script to 60 banners. Can that be changed to miliseconds so more banners can be added? See the script below~
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var how_many_ads = 2;
var now = new Date()
var sec = now.getSeconds()
var ad = sec % how_many_ads;
ad +=1;
if (ad==1) {
url="URL GOES HERE";
alt="ALT TEXT";
banner="IMAGE URL HERE";
width="NUMBER";
height="NUMBER";
}
if (ad==2) {
url="URL GOES HERE";
alt="ALT TEXT";
banner="IMAGE URL HERE";
width="NUMBER";
height="NUMBER";
}
document.write('<a href=\"' + url + '\" target=\"_blank\">');
document.write('<img src=\"' + banner + '\" width=')
document.write(width + ' height=' + height + ' ');
document.write('alt=\"' + alt + '\" border=0></a>');
// End -->
</SCRIPT>
Thank you in advance!