Debibrighthope-
If you have a general knowledge of javascript this can be easily done
using the following script. Compliments to webwino for giving us a condense
verison of
http://www.moock.org/webdesign/flash/detection/moockfpi/ dectector.
This Code is listed below.
Just swap out your content for the flash movie, dimensions, player verison and
alt image. If you have a good knowledge of flash you should use the moockfpi
link I gave above. It has more features for you to be able to redirect pages,
alt image and other lil goodies. Hope this helps.
<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;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0
&& (navigator.appVersion.indexOf("Win") != -1)) {
document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from
IE4.5 Mac by splitting the tag
document.write('on error resume next \n');
document.write('MM_FlashCanPlay = (
IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." &
MM_contentVersion)))\n');
document.write('</SCR' + 'IPT\> \n');
}
if ( MM_FlashCanPlay ) {
document.write('<object
classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"');
document.write('
codebase="
http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab# version=7,0,0,0" ');
document.write(' width="750" height="300" id="42005" align="middle">');
document.write(' <param name="allowScriptAccess" value="sameDomain" /> <param
name="movie" value="/Movies/42005/42005.swf" /> <param name="quality"
value="high" /> <param name="bgcolor" value="#4c1517" /> ');
document.write(' <embed src="/Movies/42005/42005.swf" quality="high"
bgcolor="#4c1517" ');
document.write(' width="750" height="300" name="42005" align="middle"
allowScriptAccess="sameDomain"');
document.write(' type="application/x-shockwave-flash"
pluginspage="
http://www.macromedia.com/go/getflashplayer">');
document.write(' </EMBED>');
document.write(' </OBJECT>');
} else{
document.write('<IMG SRC="/images/main.jpg" WIDTH="750" HEIGHT="300"
usemap="#script" BORDER=0>');
}
//-->
</SCRIPT><NOSCRIPT><IMG SRC="/images/main.jpg" WIDTH="750" HEIGHT="300"
usemap="#script" BORDER=0>
</NOSCRIPT>