Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | FLASH: Plugin detect |
From: | Patrick Dunne |
Date: | Wed, 13 Jan 1999 08:46:16 GMT |
Hi John,
please ignore my last message. I have since gone to the Flash Central site
and "borrowed" your plugin detect script. I modified it to include my pages
(at least I think I did it correctly) rather than the ones you had. It works
fine for Navigator 3&4 but doesn't seem to recognize plugins in IE 3&4. Any
ideas on what I've done wrong? Hope I haven't muddled your script too badly.
The following is in my index.html page at http://www.dunnedesign.com/jha
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<meta name="generator" content="GoLive CyberStudio 3">
<title>JHA Page detect </title>
<script language="JavaScript"><!--
if (navigator.userAgent.indexOf("WebTV") > -1) top.location =
"jhaenter.html";
if ((document.cookie) && (document.cookie.indexOf("Flash-PlugIn=J717-3C") >
-1)) top.location = "jhaflash.html";
temp = '<SCRIPT LANGUAGE="VBScript"\> \n'
temp += '<!--\n'
temp += 'If ScriptEngineMajorVersion >= 2 then\n'
temp += 'dim flash\n'
temp += 'on error resume next\n'
temp += 'If Not IsNull(CreateObject("ShockwaveFlash.ShockwaveFlash.3")) then
\n'
temp += 'If err then\n'
temp += 'flash=0\n'
temp += 'Else\n'
temp += 'flash=3\n'
temp += 'top.location = "jhaflash.html"\n'
temp += 'End If \n'
temp += 'End If \n'
temp += 'If flash <> 3 then\n'
temp += 'If Not IsNull(CreateObject("ShockwaveFlash.ShockwaveFlash")) then
\n'
temp += 'If err then\n'
temp += 'flash=0\n'
temp += 'Else\n'
temp += 'top.location = "jhaenter.html"\n'
temp += 'End If \n'
temp += 'End If \n'
temp += 'End If \n'
temp += 'End If \n'
temp += '-->\n'
temp += '</SCRIPT\> \n'
document.write(temp);
if (navigator.mimeTypes &&
navigator.mimeTypes["application/x-shockwave-flash"] &&
navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin)
{
if (navigator.plugins &&
navigator.plugins["Shockwave Flash"] &&
navigator.plugins["Shockwave Flash"].description.indexOf("Flash 3") !=
-1)
{top.location = "jhaflash.html";}
else {top.location = "jhaenter.html";}
}
// -->
</script>
</head>
TIA john
----------
>From: John Croteau <croteauerols [dot] com>
>To: flashershocker [dot] com
>Subject: Re: FLASH: page detect
>Date: Tue, Jan 12, 1999, 11:56 AM
>
> Hi Patrick,
>
> Which detection script are you referring to?
> The only one actually displayed at FC is an Archive of my Flash 2 only
> one. Others are linked. Colin has one that isn't linked on the Resource
> see http://colinmoock.iceinc.com/webdesign/flash/
>
> If you are trying to duplicate the one actually used at Flash Central
> then you should know it detects for both Flash 2 and Flash 3 (We still
> have the Flash 2 version of the site but it is not updated).
>
> ----------- -----------------------
> John Croteau croteauerols [dot] com (mailto:croteauerols [dot] com)
> ------------- -------------------------
> FlashTek (Advanced Websites with Flash) http://www.FlashTek.com/
> Flash Bible (Fast track to good Flash) http://www.FlashBible.com/
> Flash Central(The Universe Starts Here) http://www.FlashCentral.com/
> The Flash Tech Resource (Tech Notes) http://www.FlashCentral.com/tech/
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> ------------------------------------------------------------------------
> 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
>
------------------------------------------------------------------------
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
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]