473,396 Members | 1,713 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Ad rotator driving mozilla/netscape wiggy

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="http://www.blah.com">
<img border=0 name="ad1" width=468 height=60
src="/ads/fullbanner/ad1/blah.jpg"></a>
</center>
</body>
</html>
Jul 23 '05 #1
1 1656
JRS: In article <29************************@posting.google.com>, dated
Mon, 20 Sep 2004 21:42:43, seen in news:comp.lang.javascript, apchar
<ap****@yahoo.com> posted :

Don't post the same article twice within three hours.
adNum = Math.ceil(Math.random()*numAds);


Incorrect; see newsgroup FAQ.

--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://www.jibbering.com/faq/> JL/RC: FAQ of news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
Jul 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Sims | last post by:
Hi, if i use... // php $info = getenv("HTTP_USER_AGENT"); // I noticed that Mozzila and Netscape <6(?) both use the same Agent. // so i was thinking of if...
15
by: Peter Bremer | last post by:
Hi all, I've written this little piece of code, which doesn't seem to work in Mozilla 1.5. I haven't tried it on other Gecko browsers, but I've found some indication that Netscape 6+ has the...
3
by: Simba | last post by:
Hi, I've written some javascript routines for Internet Explorer and Opera. Could you tell me the Netscape and Mozilla equivalents? Thanks ------------------------- //this works with...
4
by: Scott Navarre | last post by:
Hi, I have Red Hat 8.0 and have the default Mozilla browser that comes with it. I am programming in javascript and have come across something problematic. Given the following code: <HTML>...
5
by: Roman Blöth | last post by:
Hello out there, pls excuse if my xposting might fall into a false group - this is a quick problem which I should solve soon... Why the heck would Mozilla 1.2.1 on a Mac (OS 9.x) render a...
3
by: Parrot | last post by:
Does anyone else have a problem with the Mozilla browser not expanding a multi-line textbox to its proper size? My textboxes are all small and do not display mu;tiple lines in Mozilla or Netscape...
2
by: apchar | last post by:
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...
49
by: Aidan | last post by:
I rely heavily on MSDN for documentation when it comes to HTML/DHTML/JavaScript/CSS but as a result I often have problems getting my stuff to work in Netscape/Mozilla/Firefox. I like the MSDN...
10
by: News | last post by:
I have a page up trying to learn how to ID a browser and other info. http://wyght.com/warren/testPos.html here is the code <script type = "text/javascript"> var space = ", "; var name...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.