SWFObject Embed with options


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

A SWFObject embed example with all options.


Copy this code and paste it in your HTML
  1. <script type="text/javascript">
  2.  
  3. var flashvars = {
  4. name1: "hello",
  5. name2: "world",
  6. name3: "foobar"
  7. };
  8. var params = {
  9. wmode: "transparent"
  10. };
  11. var attributes = {
  12. id: "myDynamicContent",
  13. name: "myDynamicContent"
  14. };
  15.  
  16. swfobject.embedSWF("myContent.swf", "myContent", "300", "120", "9.0.0","expressInstall.swf", flashvars, params, attributes);
  17.  
  18. </script>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.