Posted By

jonhenshaw on 05/16/07


Tagged

object script flash embed ufo


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

basicmagic
IanLewis
Quizosde


UFO - Unobtrusive Flash Objects


 / Published in: HTML
 

URL: http://www.bobbyvandersluis.com/ufo/

Use this HTML to display Flash movies on web pages. This is IE and SEO friendly. Rename the SWF file name to your file name and also rename "ufo-name" to whatever you want. The "ufo.js" file is required for this to work, which can be found here: http://snipplr.com/view/2653/ufo--unobtrusive-flash-objects--required-javascript/

  1. <!-- Place in HEAD -->
  2. <script type="text/javascript" src="/js/ufo.js"></script>
  3. <script type="text/javascript">
  4. var FO = { movie:"/swf/name.swf", width:"300", height:"120", majorversion:"8", build:"0", xi:"true" };
  5. UFO.create(FO, "ufo-name");
  6.  
  7. <!-- Place in BODY -->
  8. <div id="ufo-name">
  9. <p>Replacement content</p>
  10. <p><a href="http://www.macromedia.com/go/getflashplayer"><img src="http://www.macromedia.com/images/shared/download_buttons/get_flash_player.gif" alt="Get macromedia Flash Player" style="border: none;" /></a></p>
  11. </div>

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: Xtrme_XJ on September 24, 2008

Number 1: This is Brilliant Number 2: I wrote a function that figures out a size that I want the flash to be and I want to change the width and height using that function but when I replace the width:"300" with width:"maxWidth()" or anything like that it does not work.

Any help? [email protected]

Posted By: Xtrme_XJ on September 24, 2008

Number 1: This is Brilliant Number 2: I wrote a function that figures out a size that I want the flash to be and I want to change the width and height using that function but when I replace the width:"300" with width:"maxWidth()" or anything like that it does not work.

Any help? [email protected]

You need to login to post a comment.