Code for when flash doesn't work and you want to replace the swf with a jpg?

Morgan Anderson

New member
I have my site currently working, and it has a flash file for my site name. When browsers do not have flash I want them to see a JPG instead of the site looking stupid because it doesn't have anything there. Is there simple code I can put into my code that will fix this? Below is my code, I would love to just add code that would switch the image if the browser isn't compatible! Please help!

ps--> my flash is within a div tag


iv id="flash">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="937" height="388" align="middle" id="FlashID" title="flower">
<param name="movie" value="final_growingflower.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<param name="swfversion" value="6.0.65.0" />
<!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
<param name="expressinstall" value="Scripts/expressInstall.swf" />
<!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
<!--[if !IE]>-->
<object data="final_growingflower.swf" type="application/x-shockwave-flash" width="937" height="388" align="middle">
<!--<![endif]-->
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<param name="swfversion" value="6.0.65.0" />
<param name="expressinstall" value="Scripts/expressInstall.swf" />
<!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
<div>
<h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>

<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
 
Back
Top