Your Ad Here

Inserting a SWF image into your website

Well if you are here you are probably wondering how in the world you insert an SWF image into a html webpage using code! This way validates as proper html/css from the w3c validator. This way embeds the swf as an object into your website. If you are using this code in your website be sure to change the ‘data=’ and ‘value=’ parameters to where your swf file is located in your folder. The width and height numbers can be altered to whatever the size of your SWF is. If you do not know what the size of your SWF is you can right click the file and go to properties or you can hover your mouse over the file.

<object type=”application/x-shockwave-flash”
data=”swfimg/home.swf” width=”600″ height=”400″>
<param name=”movie” value=”swfimg/home.swf”>
</object>

It is very important that you change “swfimg/home.swf” under data and value to the location of your swf file in your website folder. If you do not change these then your swf image will not show up. As I said before, the height and width may be changed to whatever the size of your swf.

VN:F [1.6.4_902]
Rating: 0.0/5 (0 votes cast)
VN:F [1.6.4_902]
Rating: 0 (from 0 votes)




Leave a Reply