PDA

View Full Version : Can I hide a script from Netscape 4?



prettym1
11-04-2006, 06:54 AM
I have a script where the reader clicks a thumbnail for a bigger picture.
If javascript is disabled, they get the picture in the browser page.
I have it on pages that also have a javascript menu, and that menu includes a browser sniffer. On those pages the pop-up script works in Netscape 4.

I've just used it on a page that does NOT have the javascript menu. It works fine in the usual browsers, but NS4 runs the script and pops up a window with a broken picture.

What I need is either some way of telling NS4 not to bother trying--to show the picture on a normal page--or else an equivalent of the noscript tag so I can have an apology to users of old browsers.

I can't use the sniffer from the menu, because it's a free menu and this is a commercial page.