Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | Detection Script Modification |
From: | Colin Moock |
Date: | Fri, 24 Apr 1998 20:15:12 +0100 |
For those of you using hand made Flash detection scripts (not
AfterShock scripts) just a little reminder:
If you used to use the plugin name to detect flash, as in:
if (navigator.plugins && navigator.plugins["Shockwave Flash 2.0"])
The name has changed to "Shockwave Flash" with the version 3 plugin.
The easiest way to get around the change is to check for the mime type
instead (since both 2.0 and 3.0 use the same mime type), as in:
if (navigator.mimeTypes &&
navigator.mimeTypes["application/x-shockwave-flash"])
Of course, if your site *requires* flash 3, and won't work with flash
2, then you'd want to combine the two and send 2.0 users to an upgrade
page...
I bring this up to the list because the detection script that everyone
used to use from the Macromedia Flash Support area checks for
navigator.plugins, which means that users of flash 3 would be told they
don't have flash.
FYI.
-Colin
------------------------------------------------------------------------
To UNSUBSCRIBE send: unsubscribe flasher in the body of an
email to list-manager


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-manager

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