On my website, I have an SWF inside a div that overlays my logo png image. I want this div that contains the SWF to appear only after the logo image is loaded using jQuery.
overlay.php includes the SWF code
<div id="overlay"><?php include "overlay.php"?></div>
<div id="logo"></div>
jQuery:
<script type="text/javascript">
$('#header').on('load',function(){
$('#overlay').css("visibility","visible");
});
</script>
css:
#overlay{
position:absolute;
z-index:2;
visibility:hidden;
}
header
#header{
background-image:url(logo.png);
background-repeat:no-repeat;
position:relative;
z-index:1;
}