日期:2014-05-16 浏览次数:20334 次
var lasty=0; function show() { var scrolltop=document.documentElement.scrollTop; var percent=0.1*(scrolltop-lasty); if(percent>0) { percent=Math.ceil(percent); } else { percent=Math.floor(percent); } lasty=lasty+percent; }