How to add SWF files to blogger posts





Adding images and videos to blogs is as easy as pie. HTML already supports images through the IMG tag and videos can be inserted through the "Add Video" options in blogger. Even if your blogging platform doesn't give you an easy way to add videos you can do so by uploading the videos to video sharing sites like YouTube. YouTube will generate a link to the video which you can use to embed that video in your blog. But adding SWF files  isn't such straightforward. For this you have to add a small code to your blog. It's very easy. Just upload the SWF files to ImageShack or any other image sharing site. Now add the following code wherever you want the flash file to appear in your blog  post and then replace  file_url with the actual link to the flash file. 

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash /swflash.cab#version=6,0,29,0" width="405" height="400">
<param name="movie" value="file_url">
<param name="quality" value="high">
<embed src="file_url" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="405" height="400"></embed></object>

Note, that the "width" and "height" values in the above code needs to be changed too according to the size of the flash file. See this example below:







0 commentaires:

Enregistrer un commentaire

Related Posts Plugin for WordPress, Blogger...