How to embeb Flash object with most browsers in a DNN skin?


I have to update a DNN skin which includes a Flash object. The requirement is that it should work with most if not all browsers. I found a solution from La Trine:
http://latrine.dgx.cz/how-to-correctly-insert-a-flash-into-xhtml.
The final code:
 <!–[if !IE]> –><object type="application/x-shockwave-flash"  data="<%= SkinPath %>homeFade.swf" width="575" height="315">
            <!– <![endif]–>
<!–[if IE]>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
  width="575" height="315">
<param name="movie" value="<%= SkinPath %>homeFade.swf" />
<!–><!–dgx–>
  <param name="loop" value="true" />
  <param name="menu" value="false" />
<div><h1>Alternative content</h1>
     <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" /></a></p>
    </div>
</object>
<!– <![endif]–>
Advertisements


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s