SWF Object Embed Code


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

Basic setup code for using SWFObject to embed flash content in a plage.


Copy this code and paste it in your HTML
  1. <script type="text/javascript">
  2.  
  3. var flashvars = {
  4.  
  5. flashVarName1: "",
  6. flashVarName2: "",
  7. flashVarName3: ""
  8.  
  9. };
  10.  
  11. var params = {
  12.  
  13. wmode: "transparent",
  14. allowFullScreen: "true"
  15.  
  16. };
  17.  
  18. var attributes = {
  19.  
  20. };
  21.  
  22. swfobject.embedSWF("nameOfSwf.swf", "divID", "300","240", "9.0.0", "expressInstall.swf", flashvars, params, attributes);
  23.  
  24. </script>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.