<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 "/>
<script type= "Text/javascript" src= "Http://luxury.bjhoutai.com/js/jquery-1.8.2.min.js" ></script>
<script type= "Text/javascript" src= "Http://img.zjhm.com/0Allppzt/js/jquery.mousewheel.min.js" ></script >
<style>
*{margin:0px; padding:0px;}
img{border:0;width:100%;margin:0px; padding:0px; *margin-top:-3px;}
Body{overflow-x: Hidden; overflow-y: hidden;}
#mrt {position:fixed; top:0px;}
</style>
<body>
<div id= ' MRT ' >
</div>
<script>
var timing,mrt_top=0,time=0,windowsheight = document.documentElement.clientHeight;
for (var x= 0; x<$ (' #mrt '). FIND (' img '). length;x++) {
$ (' #mrt '). FIND (' img ') [x].style.height = windowsheight+ ' px ';
}
$ (document). MouseWheel (function (e, detail) {//detail mouse up and down, positive negative
if (time==0) {
Time = 1;
Timing = SetTimeout (' Test () ', 1000);
Mrt_top = $ (' #mrt '). Offset (). Top;
if (detail>0 && mrt_top<0) {
$ ("#mrt"). Animate ({top:mrt_top+windowsheight+ "px"},1000);
}else if (detail<0 && mrt_top> ($ (' #mrt '). FIND (' img '). length-1)) {
$ ("#mrt"). Animate ({top:mrt_top-windowsheight+ "px"},1000);
}else if (mrt_top<= ($ (' #mrt '). FIND (' img '). length-1)) | | mrt_top>=0) {
Cleartimeout (timing);
Time = 0;
}
}
})
function test () {time--;}
</script>
</body>
Mouse Wheel Slide whole screen