01-04-2008, 01:09 PM
|
#8 (permalink)
|
|
The Addict
Join Date: Nov 2007
Location: UK
Posts: 319
Thanks: 18
|
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
|
|
|