
HTML element going behind the flash object
What?
When we have a Flash object(SWF) say a flash banner below HTML menu we see that the menu goes below flash object. The solution for this is…
Include the below script in your head section of your HTML code
Flash embed script
<script>
// script inside the domReady method is executed after page is scriptable
flashembed.domReady(function() {
// wmode parameter does the trick
flashembed("flash", {src: "banner.swf", wmode: 'opaque'});
});
</script>
and the style
<style>
#flash {
width:998px;
height:281px;
}
</style>
where flash is the ID in which container the actual flash object loads. In our case banner.swf
and in HTML
<div id="flash"></div>
Output:
Hello from Russia!
Can I quote a post in your blog with the link to you?