I have a page that has a div created just to cover the entire page with a transparent png. To do so I just created an absolute div and made it 100% by 100%. I then use javascript to envoke the div from display: none to display: block. Everything works great.
What I am trying to do is make my transparent png thats the background image for that div. Fade in when the display is changed via javascript. I’ve been trying different stuff all day and just can’t seem to get it working. Any tips?
here is teh source code for the div:
#fullscreen_overlay{
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
display: none;
background: url(images/background_overlay.png) repeat;
}
and the current javascript function:
}function video_pop(){
document.getElementById(‘fullscreen_overlay’).style.display = ‘block’;
}
Any help would be great.
Thanks!