/    Sign up×
Community /Pin to ProfileBookmark

Brower Detect to Hide a DIV Layer?

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!

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@khalidali63Jan 11.2003 — 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
Copy linkTweet thisAlerts:
@davidliebauthorJan 12.2003 — 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?
Copy linkTweet thisAlerts:
@khalidali63Jan 12.2003 — 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
×

Success!

Help @davidlieb spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.10,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...