Quote:
|
Originally Posted by aiken
|
I need something that is either PHP of javascript based.
this seems to work with the few browsers (IE 6 and firefox) I tried:
Code:
<SCRIPT LANGUAGE=JavaScript1.1>
<!--
var MM_contentVersion = 6;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
var words = navigator.plugins["Shockwave Flash"].description.split(" ");
for (var i = 0; i < words.length; ++i)
{
if (isNaN(parseInt(words[i])))
continue;
var MM_PluginVersion = words[i];
}
var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
}
if ( MM_FlashCanPlay ) {
alert("flash detected");
} else{
alert("no flash detected");
}
//-->
</SCRIPT>