/ Published in: JavaScript
Load swfobject from google & embed dynamically
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<script type="text/javascript" src="http://www.google.com/jsapi"></script> <script type="text/javascript"> google.load('swfobject', '2.2'); </script> <script type="text/javascript"> var flashvars = {}; var params = {}; var attributes = { id: "chatTall", name: "chatTall" }; swfobject.embedSWF("TheURL/chatTall.swf", "flashcontent", "138", "419", "9", false, flashvars, params, attributes, function(e) { chatTall = e.ref;}); </script>