/ Published in: JavaScript
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]
[applies to OLD version of SWF Object]
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<script src="js/swfobject.js" language="javascript"></script> <div id="flashContent"></div> <script type="text/javascript"> // <![CDATA[ var so = new SWFObject("flash/intro.swf?<?php echo rand(0,1000); ?>", "intro", "100%", "100%", "8", "#ffffff"); so.addParam("wmode", "transparent"); so.addParam("allowScriptAccess","always"); so.addVariable("location","Manhattan New York"); so.write("flashContent"); // ]]> </script>