Please, help. Really getting desperate here. I have a piece of code which I got from a site for detecting wheather or not Flash is installed. If flash isn't installed, instead of displaying the Flash file on the Page it should display a .jpg instead. I've tried it on my mac on both Safari and Explorer and script seems to function fine. However I tried on IE 6 on PC and it does nothing. If Flash is not installed it doesn't replace it with the Jpeg file-it's just blank!! This is driving me round the twist so any help would be greatly appreciated.
The script is below and if you need to see it in action I have a test page at
www.blueskymortgages.ie/index.test.html
It should be displaying in the top banner (ignore buttons on page).
The script is
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0"
ID=Movie1 WIDTH=760 HEIGHT=182>
<param name="movie" value="bluesky1.swf" />
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="bgcolor" value="#ffffff" />
<SCRIPT LANGUAGE=JavaScript>
<!--
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin && parseInt(plugin.description.substring(plugin.descr iption.indexOf(".")-1)) >= 4 ) {
// Check for Flash version 4 or greater in Netscape
document.write('<EMBED src="bluesky1.swf" quality=high bgcolor=#FFFFFF wmode="opaque"');
document.write(' swLiveConnect=FALSE WIDTH=760 HEIGHT=182');
document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">');
} else if (!(navigator.appName && navigator.appName.indexOf("Netscape")>=0 && navigator.appVersion.indexOf("2.")>=0)){
// Netscape 2 will display the IMG tag below so don't write an extra one
document.write('<a href="drop_down.js"><IMG SRC="noflash.jpg" WIDTH=760 HEIGHT=182 BORDER=0>');
}
//-->