Embedding flash with swfobject.js

February 26th, 2010

Have been wanting to embed my flash projects into my posts for some time, without the need for popups or unnecessary plugins, so had a good search for the best solution. i found the swfobject.js was the best.
Basically put your swfobject.js on your site and make sure you code it like this…

<script type="text/javascript" src="https://www.dalesullivan.com/swfobject.js"></script></p>
<div id="cont11">You need the flash player!</div>
<p><script type="text/javascript"><!--
var so = new SWFObject("https://www.dalesullivan.com/dale-thermometer2.swf", "me11", "220", "310", "7", "#ffffff");  so.write("cont11"); //--></script>

Category: Development, WordPress | Tags: , Comment »

Get a Trackback link

No Comments Yet

You can be the first to comment!

Leave a comment

Back to top