Click to See Complete Forum and Search --> : Brower Detect to Hide a DIV Layer?


davidlieb
01-11-2003, 05:06 PM
Hello! I need help!

I'm a Flash designer, and am adding Flash to a HTML site. The Flash window is transparent, so it appears that things are flying over the HTML page.

Problem is that the transparent Flash only works in the following browsers:

Internet Explorer 3 or higher (Windows)
Internet Explorer 5.1* and 5.2* (Macintosh)
Netscape 7.0*
Mozilla 1.0 or higher*
AOL*
CompuServe*

So... I need a script that detects browsers and hides the DIV layer if the wrong browser is detected.

PROBLEM: I'm totally lame when it comes to scripting. Can some kind soul help me here? I'd be happy to send lots of great karma your way!

khalidali63
01-11-2003, 05:34 PM
you can use
navigator.appName
and
navigator.appVersion

from your question it looks like you have all the browsers on your system or you have the access just use this code and create a detection routine.

Khalid

davidlieb
01-12-2003, 03:43 AM
Thanks, Khalid, but when I said I'm totally lame at scripting, I should have said I don't know a damn thing about it. Therefore, I'd have a very hard time creating a detection routine.

Is it a lot of work? How much would someone charge for such a thing?

khalidali63
01-12-2003, 08:32 AM
If you don't know a damn thing then you need to do a bit more effort.

Below is the link from where you can use a pre written script.

http://hotwired.lycos.com/webmonkey/reference/javascript_code_library/rb_browser_detect/

good luck