Flasher Archive

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


Subject: FLASH: Universal Flash Detection HTML File
From: #LCARS
Date: Thu, 27 Jan 2000 13:54:52 GMT

Hi Flashers,

Here's a html file that checks for flash 4. Since it is not possible to use
JavaScript only, you need to work with either Flash 3 or VBScript on Windows...

Anyway, may this be of help

Dominik Dietiker
---------------


~~~~~~~~~~~~~~~~~~~~~~
<!doctype html public "-//w3c//dtd html 4.0 transitional//en"
"http://www.w3.org/tr/rec-html40/loose.dtd">
<html><head><title>test</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head>
<script language="JavaScript"><!--

function evalFlashDetection() {
if (navigator.platform.indexOf("MacPPC") >= 0 &&
navigator.appName.indexOf("Netscape") != - 1){
//is MacOS PPC & Netscape...
evalFlash();}}

function evalFlash() {
var plugin = (navigator.mimeTypes &&
navigator.mimeTypes["application/x-shockwave-flash"] ?
navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0);
if (!navigator.appName.indexOf("Netscape") != - 1 &&
navigator.platform.indexOf("MacPPC") >= 0){
if (plugin &&
parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)) >= 3)
{
//alert ("You have Macromedia Flash 4 installed...");
//Flash 4 or greater is available
document.write ("<p>Macromedia Flash 4 is
installed...</p>");
} else {
//Flash 4 is not available
}}}

// --></script>
<!-- start VBSCRIPT PLUGIN DETECTION -->
<SCRIPT LANGUAGE=VBScript>
on error resume next
var Flashmode
FlashMode = IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3"))
If FlashMode = False Then
FlashMode = IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4"))
End If
If FlashMode = True Then
document.write "<p>Flash version</p>"
Else
document.write "<p>Gif version</p>"
End If
</SCRIPT>
<!-- end VBSCRIPT PLUGIN DETECTION -->

<body bgcolor="#FFFFFF" onload= evalFlashDetection();>
</body>
</html>
~~~~~~~~~~~~~~~~~~~~~~



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  Re: FLASH: Universal Flash Detection HTM, Reclamers

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