Use SWFObject to display Flash content


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>
  2.  
  3. <script type="text/javascript">
  4. swfobject.registerObject("myId", "9.0.115");
  5. </script>
  6.  
  7. <object id="myId" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="753" height="530">
  8. <param name="movie" value="bladedWorld_new2.swf" />
  9. <param name="bgcolor" value="#000000" />
  10. <param name="wmode" value="transparent" />
  11. <!--[if !IE]>-->
  12. <object type="application/x-shockwave-flash" data="bladedWorld_new2.swf" width="753" height="530">
  13. <param name="bgcolor" value="#000000" />
  14. <param name="wmode" value="transparent" />
  15. <!--<![endif]-->
  16. <p>Alternative content</p>
  17. <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>
  18. <!--[if !IE]>-->
  19. </object>
  20. <!--<![endif]-->
  21. </object>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.