Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: FLASH: detect plugin and redirect
From: matthew
Date: Wed, 11 Aug 1999 00:52:18 +0100

hi,
 
this might all sound a bit basic but I've only been using flash for a few days and I would be very thankful for any advice.
 
I need to automatically detect whether or not the visiting browser has a flash plug-in or not, if they do, they go to one page, if not they go to another page.
I have a default page that sets up the frameset, then one of the frames opens a portal page which has the following code:
 
<script LANGUAGE="JavaScript">
if ((navigator.appName == "Microsoft Internet Explorer" &&
    navigator.appVersion.indexOf("Mac") == -1 &&
    navigator.appVersion.indexOf("3.1") == -1) ||
 
    (navigator.plugins && navigator.plugins["Shockwave Flash"])){
 
    window.location='go/front.asp';
}
else {
 
    window.location='go/norm_front.asp';
}
 

</script>
 
 I have also tried variations of this and other code over a couple of days....
this works fine for browsers with the plug-in but in browsers that do not have the plug-in, IE tries to autoinstall it (when cancelled it stays at the portal page) and Netscape remains blank.
 
please help if possible
thanx in advance
 
Matt

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]