Include / Implement SWFObject


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

Just to include and implement the SWFObject to an HTML body from a generic "/js/" directory with some basic varibles.

[applies to OLD version of SWF Object]


Copy this code and paste it in your HTML
  1. <script src="js/swfobject.js" language="javascript"></script>
  2.  
  3. <div id="flashContent"></div>
  4.  
  5. <script type="text/javascript">
  6. // <![CDATA[
  7. var so = new SWFObject("flash/intro.swf?<?php echo rand(0,1000); ?>", "intro", "100%", "100%", "8", "#ffffff");
  8. so.addParam("wmode", "transparent");
  9. so.addParam("allowScriptAccess","always");
  10. so.addVariable("location","Manhattan New York");
  11. so.write("flashContent");
  12. // ]]>
  13. </script>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.