We Recommend

Pro JavaScript Techniques Pro JavaScript Techniques
Pro JavaScript Techniques is the ultimate JavaScript book for the modern web developer. It provides everything you need to know about modern JavaScript, and shows what JavaScript can do for your web sites. This book doesn't waste any time looking at things you already know, like basic syntax and structures.


Posted By

horizens on 08/18/06


Tagged

javascript actionscript swfObject


Versions (?)


Who likes this?

6 people have marked this snippet as a favorite

jitendramr
kompo
mdavie
vvarp
vali29
jserpa


swfObject


Published in: JavaScript 


URL: http://blog.deconcept.com/swfobject/

SWFObject is a small Javascript file used for embedding Macromedia Flash content. The script can detect the Flash plug-in in all major web browsers (on Mac and PC) and is designed to make embedding Flash movies as easy as possible. It is also very search engine friendly, degrades gracefully, can be used in valid HTML and XHTML 1.0 documents*, and is forward compatible, so it should work for years to come.


  1. <script type="text/javascript" src="swfobject.js"></script>
  2.  
  3. <div id="flashcontent">
  4. This text is replaced by the Flash movie.
  5. </div>
  6.  
  7. <script type="text/javascript">
  8. var so = new SWFObject("movie.swf", "mymovie", "200", "100", "8", "#FFFFFF");
  9. so.write("flashcontent");
  10. </script>

Report this snippet 

You need to login to post a comment.