I have a simple ad rotator that’s driving mozilla and netscape a little crazy. You know that symbol in the upper right corner of the browser that animates while a page is downloading and is supposed to stop once the page is loaded? Well, after my rotate() function is called the animation starts and stops randomly as I move the mouse around the page over various other links.
This only happens in Netscape and Mozilla firefox.
Did I do something nonstandard or is this an idiosyncrasy/bug/feature in the mozilla engine?
Here’s the javascript function:
function rotate()
{
numAds=8
adNum = Math.ceil(Math.random()*numAds);
frames[‘ads’].location.href=”/ads/fullbanner/ad”+adNum+”/ad.html”;
}
where frames[‘ads’] is this iframe.
<iframe name=ads id=ads src=’/ads/fullbanner/ad1/ad.html’ width=468 height=60 marginwidth=0 marginheight=0 frameborder=0 hspace=0 vspace=0 border=0 scrolling=no>Cant do inline frames.</iframe>
There’s not much to the html thats being loaded into this iframe. Here’s one of the files:
<html>
<head></head>
<body>
<center>
<a target=”_top” href=”
<img border=0 name=”ad1″ width=468 height=60 src=”/ads/fullbanner/ad1/blah.jpg”></a>
</center>
</body>
</html>