Load swfobject from google & embed dynamically


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

Load swfobject from google & embed dynamically


Copy this code and paste it in your HTML
  1. <script type="text/javascript" src="http://www.google.com/jsapi"></script>
  2. <script type="text/javascript">
  3. google.load('swfobject', '2.2');
  4. </script>
  5.  
  6.  
  7. <script type="text/javascript">
  8. var flashvars = {};
  9. var params = {};
  10. var attributes = { id: "chatTall", name: "chatTall" };
  11.  
  12. swfobject.embedSWF("TheURL/chatTall.swf", "flashcontent", "138", "419", "9", false, flashvars, params, attributes, function(e) { chatTall = e.ref;});
  13. </script>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.