Transparent Flash File in HTML
Hello,
These days lots of web developer want to place Transparent Flash in HTML file… you have to do two things for that…
1. Create a transparent flash file
2. Place that code in HTML
Create a transparent flash file
Preparing the HTML page to make the Flash movie transparent
Three methods of creating an HTML page with the correct code are outlined below.
Publishing from Flash
The HTML for a Flash movie can be created using the Publish Settings feature in Flash. The Publish Settings dialog box provides an option to affect the WMODE setting. The options selected in the Publish Settings will be added to the HTML source code automatically:
1. Choose File > Publish Settings. Select the HTML tab.
2. Choose “Transparent” in the WMODE setting to make the Flash movie’s background disappear in browsers which support this feature.
3. Publish the document.
Place that code in HTML
This simple example / code shows all the things in details
<script>
function hider()
{
document.getElementById(”n”).style.display=’none’;
}
</script>
<div style=”position:relative; “>
<div id=”n” style=”position:absolute; top:-197px; left:112px; background-color:#4F1717;display:show;width:600px”>
<div style=”text-align:right; height:16px; “><a href=”javascript:hider()”><span style=”font-size:9px; color:#ffffff”><strong>close..[x]</span></strong></a></div>
<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=”600″ height=”350″ id=”Home-animation” align=”middle”>
<param name=”allowScriptAccess” value=”sameDomain” />
<param name=”movie” value=”images/Home-animation600×350.swf” /><param name=”quality” value=”high” /><param name=”wmode” value=”transparent” /><param name=”bgcolor” value=”#ffffff” /><embed src=”images/Home-animation600×350.swf” quality=”high” wmode=”transparent” bgcolor=”#ffffff” width=”600″ height=”350″ name=”Home-animation” align=”middle” allowScriptAccess=”sameDomain” type=”application/x-shockwave-flash” pluginspage=”http://www.macromedia.com/go/getflashplayer” />
</object>
</div>
</div>All the best !!!


Note: