Hello,
I have a page with a top banner in Flash, but if the user doesn't have Flash I want to display a jpg banner where the Flash was supposed to be. I found this script to do the switch from the swf to the jpg, but I couldn't find the script to detect Flash. Anybody?
<script language="JavaScript">
<!--
if (isFlash5 && params["flash"]) {
document.write('<object classid="clsid
27CDB6E-AE6D-11cf-96B8-444553540000" codebase=" width="134" height="202">');
document.write('<param name=movie value="flash/homepage.swf">');
document.write('<param name=quality value=high>');
document.write('<param name="menu" value="false">');
document.write('<param name="wmode" value="transparent">');
document.write('<embed src="flash/homepage.swf" quality=high menu="false" pluginspage=" type="application/x-shockwave-flash" width="134" height="202">');
document.write('</embed>');
document.write('</object>');
} else {
document.write('<img src="graphics/pictures/homepage.jpg" width="134" height="202">');
}
// -->
</script>
I have a page with a top banner in Flash, but if the user doesn't have Flash I want to display a jpg banner where the Flash was supposed to be. I found this script to do the switch from the swf to the jpg, but I couldn't find the script to detect Flash. Anybody?
<script language="JavaScript">
<!--
if (isFlash5 && params["flash"]) {
document.write('<object classid="clsid
document.write('<param name=movie value="flash/homepage.swf">');
document.write('<param name=quality value=high>');
document.write('<param name="menu" value="false">');
document.write('<param name="wmode" value="transparent">');
document.write('<embed src="flash/homepage.swf" quality=high menu="false" pluginspage=" type="application/x-shockwave-flash" width="134" height="202">');
document.write('</embed>');
document.write('</object>');
} else {
document.write('<img src="graphics/pictures/homepage.jpg" width="134" height="202">');
}
// -->
</script>