标签:style win read class color scrollto ready doc cti
$(document).ready(function(){
var p=0,t=0;
$(window).scroll(function(e){
p = $(this).scrollTop();
if(t<=p){
//下滚
}else{
//上滚
}
t = p; //更新上一次scrollTop的值
})
})
标签:style win read class color scrollto ready doc cti
原文地址:http://www.cnblogs.com/baixuemin/p/6491025.html