Hello,
I’m wondering how to ensure flash detection is working on a site.
I have downloaded several flash detection kits / solutions, but unsure how to implement them or if they are working.
I want it to either load http://leayah.com/index.html or go to http://leayah.com/noflash.html with download plugin link.
One big problem is that I have flash installed on all my browsers. Can I uninstall Flash for just one browser, ie ) keep Flash installed on Firefox but uninstall it on Safari?
It seems like it would be time consuming option to have to reinstall / uninstall Flash to test flash detection every time??!
Detection script: http://blog.deconcept.com/flashobject/
My index.html code:
<!DOCTYPE html
PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html40/strict.dtd">
<html>
<head>
<title>leayah.com</title>
<meta name="description" content="leayah.com">
<meta name="keywords" content="leayah.com">
<meta name="copyright" content="2005, leayah.com">
<META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=UTF-8">
<style type="text/css">
body{
margin:0;
padding:0;
background-color: #EDEDE6;
}
</style>
<!-- ** THIS PAGE EMBEDS A FLASHMOVIE IN A HTML-DOCUMENT ** -->
<!-- ** THE CODE IS PRODUCED AUTOMATIC BY THE TOOL AT: EchoEcho.Com/toolflashembedder.htm ** -->
<!-- ** NOTE: The code to embed the file is divided into two sections ** -->
<!-- ** The first section MUST be placed in the HEAD-section of the document. ** -->
<!-- ** The second section MUST be placed in the BODY-section of the document. ** -->
<!-- ** Below follows the two sections: ** -->
<!-- *********** START OF FLASHEMBEDDING CODE TO BE PLACED IN THE HEAD OF YOUR PAGE *********** -->
<SCRIPT LANGUAGE="JavaScript">
<!-- hide code
// define pages
flashpage="http://leayah.com/leayah2.html";
minimumver=6;
manualdetectpage="http://leayah.com/noflash.html";
// detect browser
bName = navigator.appName;
bVer = parseInt(navigator.appVersion);
// assign base variables
flash = "no"
flashver = "1.0"
action = "ns_exec"
flashver2=false;
flashver3=false;
flashver4=false;
flashver5=false;
flashver6=false;
// detect plugin for NS flash 3 version
if (bName=="Netscape")
{
if (navigator.plugins["Shockwave Flash 2.0"]) {ver = "2.0"}
else if(navigator.plugins["Shockwave Flash"]) {ver = "3.0"}
else {flashver = navigator.plugins["Shockwave Flash"].description.substring(16,19);}
test=navigator.plugins["Shockwave Flash"].description.substring(16,19);
if (test>0) {ver=test;}
}
else { action = "ie_exec" }
bver=0;
if (navigator.appVersion.indexOf('3.')!=-1) {bver=3}
if (navigator.appVersion.indexOf('4.')!=-1) {bver=4}
if (navigator.appVersion.indexOf('5.')!=-1) {bver=5}
if (navigator.appVersion.indexOf('6.')!=-1) {bver=6}
//-->
</SCRIPT>
<SCRIPT LANGUAGE="VBScript">
<!--
on error resume next
If action = "ie_exec" then
flashver2=(IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.2")))
flashver3=(IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3")))
flashver4=(IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4")))
flashver5=(IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5")))
flashver6=(IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6")))
End If
//-->
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript">
<!-- Actions
if(flashver2) {ver=2};
if(flashver3) {ver=3};
if(flashver4) {ver=4};
if(flashver5) {ver=5};
if(flashver6) {ver=6};
if (ver<minimumver)
{
if (bver>=4) {alert('This page requires ShockWave Flash Plug-In.
Press OK to install the Plug-In')}// Flash can be installed automatic
else {window.location=manualdetectpage}
// Flash needs manual installation
}
//-->
</SCRIPT>
<!-- *********** END OF FLASHEMBEDDING CODE TO BE PLACED IN THE HEAD OF YOUR PAGE *********** -->
</head>
<body>
<div align="center">
<!--url's used in the movie-->
<!--text used in the movie-->
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="832" height="616" id="leayah_base" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="leayah_newbase2.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#FFFFFF" />
<SCRIPT LANGUAGE=JavaScript>
<!--
function checkForShockwave()
{
navigator.plugins.refresh();
if ( navigator.plugins["Shockwave Flash"] ){
parent.location.reload();
} else {
setTimeout( "checkForShockwave()", 1000 );
}
}
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;
}
if (!ShockMode && navigator.appName && navigator.appName.indexOf("Netscape") != - 1 && navigator.appVersion.indexOf("4.") != - 1
&& navigator.javaEnabled() && netscape.softupdate.Trigger.UpdateEnabled() && document.cookie.indexOf("StartedShockwaveInstall") == -1) {
var jarPath = new String("");
if (navigator.platform.indexOf("Win32") >= 0 )
jarPath = "http://download.macromedia.com/pub/shockwave/jars/english/silentflash32.jar"
else if (navigator.platform.indexOf("Win16") >= 0 )
jarPath = "http://download.macromedia.com/pub/shockwave/jars/english/silentflash16.jar"
else if (navigator.platform.indexOf("MacPPC") >= 0 )
jarPath = "http://download.macromedia.com/pub/shockwave/jars/english/silentflashppc.jar"
if (jarPath.length) {
netscape.softupdate.Trigger.StartSoftwareUpdate (jarPath, netscape.softupdate.Trigger.FORCE_MODE);
document.cookie='StartedShockwaveInstall;path=/;'
setTimeout("checkForShockwave()", 1000);
}
}
//-->
</SCRIPT>
<embed src="leayah_newbase2.swf" quality="high" bgcolor="#FFFFFF" width="832" height="616" name="leayah_base" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</div>
</body>
</html>