How To Correctly Insert a Flash Movie Into XHTML


 / Published in: HTML
 

URL: http://www.dgx.cz/trine/item/how-to-correctly-insert-a-flash-into-xhtml

Nice example of how to best insert a flash movie into an XHTML document.

  1. <!--[if !IE]> -->
  2. <object type="application/x-shockwave-flash"
  3. data="movie.swf" width="300" height="135">
  4. <!-- <![endif]-->
  5.  
  6. <!--[if IE]>
  7. <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
  8. codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
  9. width="300" height="135">
  10. <param name="movie" value="movie.swf" />
  11. <!--><!---->
  12. <param name="loop" value="true" />
  13. <param name="menu" value="false" />
  14.  
  15. <p>This is <strong>alternative</strong> content.</p>
  16. <!-- <![endif]-->

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: wintondeshong on May 1, 2008

I recommend swfobject (http://blog.deconcept.com/swfobject/)

You need to login to post a comment.