 <p>Sorry, I didn't understand the question exactly then.</p> <p>If you want to embed .swf files using javascript, I'd recommend you to use swfobject.</p> <p>I made an example here:</p> <p><a href="http://jsfiddle.net/ZGGCj/" rel="nofollow">http://jsfiddle.net/ZGGCj/</a></p> <p>swfobject is documented pretty well here:</p> <p><a href="http://code.google.com/p/swfobject" rel="nofollow">http://code.google.com/p/swfobject</a></p>