movebar.js

来自「不错的ASP整站源代码。在IIS环境下运行都没有问题」· JavaScript 代码 · 共 14 行

JS
14 行
字号

suspendcode="<DIV id=lovexin style='right:2px;POSITION:absolute;TOP:1px;'><a href='http://www.LC126.com' title='网站首页'><img border=0 src='images/bbsclose.gif'></a></div>"
document.write(suspendcode);
lastScrollY=0;
function heartBeat(){
diffY=document.body.scrollTop;
percent=.1*(diffY-lastScrollY);
if(percent>0)percent=Math.ceil(percent);
else percent=Math.floor(percent);
document.all.lovexin.style.pixelTop+=percent;
lastScrollY=lastScrollY+percent;
}
window.setInterval("heartBeat()",1);

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?