Flasher Archive

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


Subject: Re: Flash 3 detection scripts...
From: Colin Moock
Date: Mon, 1 Jun 1998 16:49:12 +0100

flasheratshocker [dot] com,Internet writes:
>Has anyone worked out a good detection script to check for the Flash 3
>plugin (as opposed to the Flash 2 plugin?)

This script portion will sniff for Flash 3. If you don't have 3, it
sends you to an installation page (script tested and used on GWEN):

//if they have Flash 2, they can't continue
if(navigator.plugins && navigator.plugins["Shockwave Flash 2.0"]){
window.location='installflash.html';}


//if they have MSIE running on anything but Mac or Win 3.1 OR
//if they have Flash 3.0 (which identifies itself simply as "Shockwave
Flash"
//then let them see the content.
else{
if ((navigator.appName == "Microsoft Internet Explorer" &&
navigator.appVersion.indexOf("Mac") == -1 &&
navigator.appVersion.indexOf("3.1") == -1) ||
(navigator.plugins && navigator.plugins["Shockwave Flash"]))


{
//Load the Flash content page.
window.location='flashcontent.html';
}
else {
//Load a pre-defined HTML page without Shockwave into the
browser window.
window.location='installflash.html';
}
}



-Colin

------------------------------------------------------------------------
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
  Flash3 and processor occupancy, David Gary
  <meta> helicopter sounds, Jim Beck
  MM: Smart Shockwave bug, Tom Simpson
  Re: Flash 3 detection scripts..., Tom Simpson

Replies
  Flash 3 detection scripts..., Tom Simpson

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