How to embed a flash movie (.swf) in a html page and play without alert bar (with example codes)

Use the open source software: swfobject.

The link is as below:

http://blog.deconcept.com/swfobject/

Here are two examples:

Jeff’s code:
<script type=”text/javascript” src=”swfobject.js”></script>

<script type=”text/javascript”>

swfobject.embedSWF(

“RadioTransmission.swf”, “myContent”, “640”, “480”, “10”);

</script>

<div id=”myContent”>

<a href=”http://www.adobe.com/go/getflashplayer“>
<img src=”http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif” alt=”Get Adobe Flash Player” /></a>
</div><!–close myContent–>

My code:

<script type=”text/javascript” src=”http://coolder.com/news/swfobject.js”></script>
<script type=”text/javascript”>
swfobject.embedSWF(“http://coolder.com/iblog/google_ads/wowjustbeautiful.swf“, “myContent”, “300”, “250”, “0”);

</script>
<script type=”text/javascript”>

<div id=”myContent”>
<!—
<a href=”http://www.adobe.com/go/getflashplayer“>
<img src=”http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif” alt=”Get Adobe Flash Player” /></a>
—>
<a href=”WowJustBeautiful.ecrater.comhttp://wowjustbeautiful.ecrater.com”>WowJustBeautiful.ecrater.com</a>
</div>

Both work quite well.

One thought on “How to embed a flash movie (.swf) in a html page and play without alert bar (with example codes)

Leave a Reply to Mia Cancel reply

Your email address will not be published. Required fields are marked *