Thanks for any help you can give me!
I'm trying to set up a banner ad on a webpage that will rotate randomly through a series of about 22 ads. I found code that works for IE but I'm having problems with Firefox (it doesn't refresh unless you manually refresh the page).
The image link for the banner that is created (by the function getCode) is:
The function newAd is as follows:
I'm trying to set up a banner ad on a webpage that will rotate randomly through a series of about 22 ads. I found code that works for IE but I'm having problems with Firefox (it doesn't refresh unless you manually refresh the page).
The image link for the banner that is created (by the function getCode) is:
Code:
<a href="http:www.website.com" target="_blank">
<img src="Image1" width="550" height="60" border=1 onload=setTimeout('newAd()',5000);></a>
Code:
function newAd(){
current_ad++;
if (current_ad > numAds)
current_ad = 1;
if (document.all){
write(getCode(current_ad));
}
}
Comment