Re: Redirection with Javascript
by "Bert Doorn" <bdoorn(at)iinet.net.au>
|
Date: |
Wed, 11 Aug 1999 22:18:49 +0800 |
To: |
<hwg-basics(at)hwg.org> |
References: |
ac |
|
todo: View
Thread,
Original
|
|
G'day
> I've done up a site and have several mouseovers that conform to
> HTML 4, ie with image arrays, which don't work in NN3.
Sounds familiar - are the images to be swapped placed in a table? That's
usually what causes problems for mouseovers in NN3, using the
document.images[n] method.
If so, there's a fairly simple way to overcome it - you'd have to sniff for
NN3 and if add a constant to the array index. Example of one I did can be
found at http://www.adenafoothealth.com/ (on the pages AFTER the splash
page). You'll have to experiment with the actual number to add (unless
someone knows a magical formula to work it out?)
>My question is this: instead of disabling the mouseovers, can I
> redirect NN3 browsers to another set of pages that work for that browser.
If you can't overcome the problem by my method, try this (assuming the new
index page is nn3index.html):
if(navigator.appName=="Netscape" && navigator.appVersion.charAt(0)==3)
self.location="nn3index.html"
}
HTH
--
Bert Doorn, Web Developer
http://www.betterwebdesign.com.au/
Author of "Beginners' Website Design Tips"
http://www.ii.net/~bdoorn/
HTML: hwg-basics mailing list archives,
maintained by Webmasters @ IWA