Tuesday, February 12, 2013

Add Flash content to web page

                                            FOR WEB DEVELOPERS & DESIGNERS 
Wanna add interactivity to your site...............means wanna add FLASH (swf file) content to your webpage...............

         So come on Designers and Developers

I think many of you may know how to do this but who don't lets begin........

For accurate result you must use internet explorer(IE) browser...................

<html>
 <title>Your title goes here</title>
<body background=pic_name.jpg>
    <center>
        <div style="width: 1100px; height: 666px; position: relative;">  //this is height and width of                 <div style="position: absolute; z-index: 1;">                               //the flash file...
                <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
                    codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
                    width="1100" height="666">
                    <param name="movie" value="autumnleaves.swf" />  //name of flash file in value
                    <param name="quality" value="high" />
                    <param name="wmode" value="transparent"> //use this in case you want to hide the
                                                                                              //background of flash(.swf) file.
         //In my case the background of flash file was black,so i used up value as transparent.....
                    <embed src="autumnleaves.swf" type="application/x-shockwave-flash"
                        width="1100" height="666" />
                </object>
            </div>
            <div style="position: relative; z-index: 2;"></div>
        </div>
    </center>
 </body>
</html>


In case of any query..................please post comment.............thanks..........