View Single Post
Old 01-04-2008, 01:09 PM   #8 (permalink)
Rendair
The Addict
Upcoming Programmer Top Contributor 
 
Rendair's Avatar
 
Join Date: Nov 2007
Location: UK
Posts: 319
Thanks: 18
Rendair is on a distinguished road
Default

I made this code couple weeks ago its very simple one.

PHP Code:
<script type="text/javascript">
    
function 
overLay(){

    var 
height document.body.clientHeight;
    var 
width document.body.clientWidth;
    
    
document.getElementById("overlay").style.width width;
    
document.getElementById("overlay").style.height height;
    
document.getElementById("overlay").style.opacity 0.2;
}
    
</script> 
It will leave a gap around the page, but you can also make it so it sets the body margin to 0 so it fits plush to the sides.

Here is an example i made: HERE
__________________
www.jooney.co.uk - the online portfolio
Send a message via MSN to Rendair
Rendair is offline  
Reply With Quote