maxapet,
<!DOCTYPE HTML>
<html>
<head>
<style type="text/css">
#lBlkDiv {
position: absolute;
left: 0px;
top: 0px;
width: 0px;
height: 0px;
z-index: 999;
opacity: 50%;
background-color: navy;
display: none;
}
</style>
<script type="text/javascript" lang="javascript">
var startDelay = 1000;
// навешивание обработчика
function addEvent(elem, type, handler){
if(elem.addEventListener){
elem.addEventListener(type, handler, false);
} else {
elem.attachEvent('on'+type, handler);
}
return false;
}
addEvent(window, 'load', function() {init()});
function init() {
if(startDelay >= 0)
setTimeout("showDiv()", startDelay);
displayCountDown(countDown);
setInterval("countDownDecr()", 1000);
}
function showDiv() {
var w = window.innerWidth
|| document.documentElement.clientWidth
|| document.body.clientWidth;
var h = window.innerHeight
|| document.documentElement.clientHeight
|| document.body.clientHeight;
var lBlkDiv = document.getElementById("lBlkDiv");
lBlkDiv.style.display = "block";
lBlkDiv.style.width = w+"px";
lBlkDiv.style.height = h+"px";
}
</script>
</head>
<body>
<div id="lBlkDiv"> </div>
</body>
</html>