Flasher Archive

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


Subject: Re: FLASH: plugin detect
From: Daniel Votino
Date: Mon, 11 Jan 1999 09:12:59 GMT

Patrick . . the question at the end is why does it have a URL to download .
. that is if someone gets stuck on the page because they have not been
properly detected. It is telling them that the site requires the plugin and
to go get it before going anyfurther I believe. (Are you missing some of
the code?) As to the first question, I wouldcut and paste your code again .
. I have seen that bit of code working on many sites and if you have an
invalid charcter then you have accidentally altered it somehow. Perhaps
someone here could probably look at it as you have it pasted and tell you
exacly what the problem is.

~Daniel


-----Original Message-----
From: Patrick Dunne <pdunneathome [dot] com>
To: flasheratshocker [dot] com <flasheratshocker [dot] com>
Date: Monday, January 11, 1999 12:51 AM
Subject: FLASH: plugin detect


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


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


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