Flasher Archive

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


Subject: Flash 3 detection scripts...
From: Tom Simpson
Date: Mon, 1 Jun 1998 16:24:11 +0100

Has anyone worked out a good detection script to check for the Flash 3 plugin (as opposed to the Flash 2 plugin?) I've got a script that works great for detecting Flash, but I'm going to start using some 3.0 features and I need to have one that will check for the 3.0 plugin.

Here's one of my current scripts I use (found it from here on the list a while ago). Any suggestions/modifications? Just adding a 3.0 in the navigator.plugins section didn't work for me, the script still sent me to the non-flash page.

Tom
http://www.xenafan.com

<SCRIPT LANGUAGE="JavaScript">
<!-- use this comment tag to hide the enclosed code from old browsers.

//Look for a version of Internet Explorer that supports ActiveX (i.e., one that's
//running on a platform other than Mac or Windows 3.1) or a browser that supports
//the plugin property of the navigator object and that has Shockwave Flash
//installed.

if ((navigator.appName == "Microsoft Internet Explorer" &&
navigator.appVersion.indexOf("Mac") == -1 &&
navigator.appVersion.indexOf("3.1") == -1) ||

(navigator.plugins && navigator.plugins["Shockwave Flash"])){

//Load a pre-defined HTML page with Shockwave in it into the browser window.
window.location='flash.html';
}
else {
//Load a pre-defined HTML page without Shockwave into the browser window.
window.location='getflash.html';
}

// Close the comment tag. -->
</SCRIPT>

------------------------------------------------------------------------
To UNSUBSCRIBE send: unsubscribe flasher in the body of an
email to list-manageratshocker [dot] com. Problems to: owneratshocker [dot] com
N.B. Email address must be the same as the one you used to subscribe.
For info on digest mode send: info flasher to list-manageratshocker [dot] com


Replies
  Re: Flash 3 detection scripts..., Colin Moock

Replies
  The Good Frameset, Andrew Vester

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