Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | FLASH: plugin detect |
From: | Patrick Dunne |
Date: | Mon, 11 Jan 1999 08:50:35 GMT |
Hi shockers,
Wondering if someone can lend me a hand with a plugin detect script. I
picked up the JS below from FlashCentral and pasted it into the index.html
of the site I'm working on. It is all by itself. I then changed
'shocked.html' to 'myshockedpage.html' and 'nonshocked.html' to
'mynonshocked.html'. My understanding was that this script would act as a
fork in the road taking users to either the shocked entry page or the dull
one. Instead, I receive a dialog box in IE 4.01 and 4.5 saying "A script
error occurred. ... etc." It says the error occurred on line 8 and is an
"invalid character". A similar result occurs with netscape 4.0 (it claims
the error is #15 in netscape).
One other thing: Why does the script have a url to download the plugin if
this script just send users to the shocked or non-shocked page?
Any help would be hugely appreciated.
Pat
<HTML>
<HEAD>
<TITLE>Page detect</TITLE>
<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
Director
//installed.
if ((navigator.appName == "Microsoft Internet Explorer" &&
���navigator.appVersion.indexOf("Mac") == -1 &&
���navigator.appVersion.indexOf("3.1") == -1) ||
��(navigator.plugins && navigator.plugins["Shockwave for
Director"].description.indexOf["6.0"] != -1)){
���//Load a pre-defined HTML page with Shockwave in it into the browser
window.
���window.location='shocked.html';
}
else {
���//Load a pre-defined HTML page without Shockwave into the browser window.
���window.location='nonshocked.html';
}
// Close the comment tag. -->
</SCRIPT>
</HEAD>
<BODY>
<CENTER>
<H3><BR>
<FONT SIZE=3>requires <A
HREF="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version
=ShockwaveDirector">Shockwave Director</A></FONT></H3>
<H3>
</CENTER>
</BODY>
</HTML>
------------------------------------------------------------------------
To UNSUBSCRIBE send: unsubscribe flasher in the body of an
email to list-managershocker [dot] com. Problems to: ownershocker [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-managershocker [dot] com
Replies
Re: FLASH: plugin detect, Erik [gearik] Mattheis
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]