473,756 Members | 1,861 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Why doesn't this work on Netscape 7.1

I'd enjoy learning why this piece of javascript code which I cribbed a
couple of years ago (It creates a trail of bubbles following the mouse
pointer.) works fine in IE 6.0 and Netscape 4.79, but doesn't do its
thing when under Netscape 7.1?

I've viewed javascript "test pages" on Netscape 7.1, and they seem to
work ok, so I'm presuming there's something obsolete about the code in
this page of mine:

http://home.comcast.net/~jwisnia18/jeff/bubbletrail.htm

Thanks guys,

Jeff

--

Jeff Wisnia (W1BSV + Brass Rat '57 EE)

"If you can smile when things are going wrong, you've thought of someone to blame it on."

Jul 20 '05 #1
3 1397
Jeff Wisnia wrote:
I'd enjoy learning why this piece of javascript code which I cribbed a
couple of years ago (It creates a trail of bubbles following the mouse
pointer.) works fine in IE 6.0 and Netscape 4.79, but doesn't do its
thing when under Netscape 7.1?
Because its IE and NN4.xx specific code that relies on browser detection
to run. And it incorrectly assumes that Netscape 7's DOM is the same as
Netscape 4's based simply on the word "Netscape" being in the userAgent
string.

Open your page, in NS7, go Tools>Web Development>Jav ascript Console
I've viewed javascript "test pages" on Netscape 7.1, and they seem to
work ok, so I'm presuming there's something obsolete about the code in
this page of mine:


Lots of obsolete things, the most obsolete being browser detection based
on userAgent strings


--
Randy
Chance Favors The Prepared Mind
comp.lang.javas cript FAQ - http://jibbering.com/faq/

Jul 20 '05 #2

"Jeff Wisnia" <jw*****@conver sent.net> wrote in message
news:qp******** ************@co mcast.com...
I'd enjoy learning why this piece of javascript code which I cribbed a
couple of years ago (It creates a trail of bubbles following the mouse
pointer.) works fine in IE 6.0 and Netscape 4.79, but doesn't do its
thing when under Netscape 7.1?

I've viewed javascript "test pages" on Netscape 7.1, and they seem to
work ok, so I'm presuming there's something obsolete about the code in
this page of mine:

http://home.comcast.net/~jwisnia18/jeff/bubbletrail.htm

Thanks guys,

Jeff

--

Jeff Wisnia (W1BSV + Brass Rat '57 EE)

"If you can smile when things are going wrong, you've thought of someone to blame it on."


Could you please format the code properly as well :-( zero layers of
indentation and brackets seemingly randomly placed make not easy debugging
do
Jul 20 '05 #3

: http://home.comcast.net/~jwisnia18/jeff/bubbletrail.htm

You could also make it work in the corner, now you get scrollbars.. that's
not nice to get scrollbars for a cursor animation, is it?

Wouter
Jul 20 '05 #4

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

Similar topics

1
16346
by: Thomas | last post by:
It looks like the String.replace doesn't work in IE6.1. Anyone else has the same problem. I am using newest service package of IE and Win2K. Thanks
7
4892
by: AnnMarie | last post by:
My JavaScript Form Validation doesn't work at all in Netscape, but it works fine in IE. I made some of the suggested changes which enabled it to work in IE. I couldn't make all the changes because then it didn't work in IE. How can I enable this javascipt form validation to work in Netscape? When I use netscape, none of the alert boxes appear. It submits the form without validating anything.
13
2080
by: AMC | last post by:
Hi, I have the below code in an asp page. When I run this page in IE or Opera it correctly displays the header info and does not redirect me to 'test.html'. However, when I run this in Netscape it goes straight to the redirect page 'test.html' which indicates that javascript is not enabled and it also does not display the header info. Can someone tell me why this is happening? <%@ Language=VBScript%> <%'get header info
2
2423
by: kelvin | last post by:
Hi, I've this piece of code which does not work at all. Can anyone point out my mistake? I've 2 buttons. History button will call verifyFields() function and lead to different page for processing. verifyFields() is working fine and so does the history() function.
3
1686
by: Iver Erling Årva | last post by:
Can anyone please tell me why this doesn't work? The sign changes when I hit the button, and I get no error messages, but the textarea doesn't disappear/reappear. <html> <head> <title>New Page 1</title> </head>
3
25320
by: Matt | last post by:
I want to know if readOnly attribute doesn't work for drop down list? If I try disabled attribute, it works fine for drop down list. When I try text box, it works fine for both disabled and readOnly attribute. For example, #1 will work, but #2 doesn't work 1) <SELECT name="streetDirection" class="FormInput" DISABLED> In JavaScript, I have InputForm.streetDirection.disabled = false; 2) <SELECT name="streetDirection" class="FormInput"...
10
1567
by: Brett | last post by:
This code is supposed to work in Netscape 4+ and IE 4+. It works fine in IE but in Netscape 7.2, I get a blank page. Any suggestions? Thanks, Brett <html> <head>
1
1029
by: Mr. x | last post by:
Hello, I am using the dotnet validators one of them is requiredFieldValidator. Is there any reason, that requiredFieldValidator won't work for Netscape ? (I have netscape 7.0, and it seems that requiredFieldValidator doesn't work for netscape, because I have test this for IE. even this is run on the server side).
4
1009
by: Bob | last post by:
Hi, this works with IE 7 (you can see the red label with 60px length), but not with Netscape 8 (nothing appears): <form id="form1" runat="server"> <asp:Label ID="Label2" runat="server" BackColor="Red" Width="60px"></asp:Label> </form>
0
9431
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10014
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9844
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9819
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9689
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8688
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6514
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3780
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3326
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.