<html>
<head>
<title>弹框</title>
<script language="JavaScript">
var advInitTop=0;
var closeInitTop=0;
function inix(){
avInitTop=document.getElementById("advLayer").style.pixelTop;
closeInitTop=document.getElementById("closeLayer").style.pixelTop;
}
function move(){
document.getElementById("advLayer").style.pixelTop=advInitTop+document.body.scrollTop;
document.getElementById("closeLayer").style.pixelTop=closeInitTop+document.body.scrollTop;
}
function closeMe(){
document.getElementById("closeLayer").style.display="none";
document.getElementById("advLayer").style.display="none";
}
window.οnscrοll=move;
</script>
</head>
<body οnlοad="inix()">
<DIV id="closeLayer" οnclick="closeMe()" style="position:absolute; left:166px; top:132px; width:27px; height:19px; z-index:2;"><img src="./img/demo01/clock.png" width="26"
height="18"></DIV>
<p> </p>
<p><img src="./img/demo01/1.bmp" width="993" height="1799"></p>
<p> </p>
<DIV id="advLayer" style="position:absolute; left:16px; top:129px; width:144px; height:95px; z-index:1;"><A href="http://www.baidu.com"><IMG src="./img/demo01/back.png" width="180" height="230" border="0"></A></DIV>
</body>
</html>
<head>
<title>弹框</title>
<script language="JavaScript">
var advInitTop=0;
var closeInitTop=0;
function inix(){
avInitTop=document.getElementById("advLayer").style.pixelTop;
closeInitTop=document.getElementById("closeLayer").style.pixelTop;
}
function move(){
document.getElementById("advLayer").style.pixelTop=advInitTop+document.body.scrollTop;
document.getElementById("closeLayer").style.pixelTop=closeInitTop+document.body.scrollTop;
}
function closeMe(){
document.getElementById("closeLayer").style.display="none";
document.getElementById("advLayer").style.display="none";
}
window.οnscrοll=move;
</script>
</head>
<body οnlοad="inix()">
<DIV id="closeLayer" οnclick="closeMe()" style="position:absolute; left:166px; top:132px; width:27px; height:19px; z-index:2;"><img src="./img/demo01/clock.png" width="26"
height="18"></DIV>
<p> </p>
<p><img src="./img/demo01/1.bmp" width="993" height="1799"></p>
<p> </p>
<DIV id="advLayer" style="position:absolute; left:16px; top:129px; width:144px; height:95px; z-index:1;"><A href="http://www.baidu.com"><IMG src="./img/demo01/back.png" width="180" height="230" border="0"></A></DIV>
</body>
</html>