Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
| Subject: | FLASH: IE flash plugin detect script |
| From: | Kristin K. Rule |
| Date: | Fri, 9 Apr 1999 21:53:33 +0100 |
Hi flashers,
I have a site where I want the user be shot off to a certain URL depending on
whether or not they have the Flash Plug in. The user will go to flash.html if
they have the plugin, and hp.html if they Don't have the plugin.
I have written 2 scripts. So far they both work in Netscape, but
neither of them work in IE4. Can anyone help? Does anyone know a
cross-browser script? Or a VB script for IE? Is my script wrong? Thanks for
the help!!
Here is my script that works in Netscape:
<body>
<SCRIPT LANGUAGE="JavaScript">
<!--
var plugin=navigator.plugins["Shockwave Flash"];
if (plugin) {
window.location=('flash.html');
}
else {
window.location=('hp.html');
}
// -->
</script>
</body>
Here is my second script that only works in Netscape too:
<html>
<head>
<SCRIPT LANGUAGE = "JavaScript">
function plugdetect(plugName)
{
if (navigator.plugins[plugName]) return true;
else return false;
}
</SCRIPT>
<title>Untitled</title>
</head>
<body>
<SCRIPT LANGUAGE = "JavaScript">
if (plugdetect("Shockwave Flash") == true)
window.location=('flash.html');
else window.location=('hp.html');
</SCRIPT>
</body>
</html>
------------------------------------------------------------------------
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
Replies
RE: FLASH: small movie to determine whet, Karen Parry
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]

