Flasher Archive

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


Subject: RE: FLASH: Flash plug-in detect script???
From: Jason Bouwmeester
Date: Tue, 15 Feb 2000 18:35:48 GMT

Here's the basic code that I use, hope this helps.

----------------------------------------------------------------------------
---------------------------
<HTML>
<HEAD>
<TITLE>Page Title</TITLE>
<script LANGUAGE="JavaScript">
<!--
var ShockMode = 0;
if (navigator.mimeTypes &&
navigator.mimeTypes["application/x-shockwave-flash"] &&
navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin) {
if (navigator.plugins && navigator.plugins["Shockwave Flash"])
ShockMode = 1;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0
&& (navigator.userAgent.indexOf("Windows 95")>=0 ||
navigator.userAgent.indexOf("Windows 98")>=0 ||
navigator.userAgent.indexOf("Windows NT")>=0)) {
document.write('<SCRIPT LANGUAGE=VBScript\> \n');
document.write('on error resume next \n');
document.write('ShockMode =
(IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3")))\n');
document.write('</SCRIPT\> \n');
}
if ( ShockMode ) {
window.location.href="flash_page.htm";
} else {
window.location.href="no_flash.htm";
}
//-->
</script>
</HEAD>
<BODY bgcolor="#000000">
</BODY>
</HTML>
----------------------------------------------------------------------------
----------------------------

-----Original Message-----
From: Mick Southerland [mick [dot] southerlandatglasseye [dot] net (mailto:mick [dot] southerlandatglasseye [dot] net)]
Sent: Tuesday, February 15, 2000 11:23 AM
To: 'flasheratchinwag [dot] com'
Subject: FLASH: Flash plug-in detect script???


Does anyone know where I can find a JavaScript to check for flash
plug-ins and redirect based on the results?

Thanks,
Mick

flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and The Flash Film Festival
"The World's Premier Flash Solutions Conference and Expo"
March 27-29, Nob Hill Masonic Center, San Francisco, California

-Register before Feb 25 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com

flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and The Flash Film Festival
"The World�s Premier Flash Solutions Conference and Expo"
March 27-29, Nob Hill Masonic Center, San Francisco, California

-Register before Feb 25 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


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