2004/12/03 | 把我的blog也能有浮标了
类别(偶思偶写) | 评论(1) | 阅读(44) | 发表于 15:32
把下面的代码加进你的模板去

你只要把下面的jpg连接换一下就行了




<SCRIPT DESIGNTIMESP=18166 DESIGNTIMESP=18228 DESIGNTIMESP=18260 DESIGNTIMESP=18316>
suspendcode="<DIV id=yuzi style='right:50px;POSITION:absolute;TOP:450px;'><img border=0 src='http://www.5dblog.com/user1/man/upload/2004-09/30_949.jpg'></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.yuzi.style.pixelTop+=percent;
lastScrollY=lastScrollY+percent;
}
window.setInterval("heartBeat()",1);
</SCRIPT>
0

评论Comments

日志分类
首页[1305]
偶思偶写[368]
生活[91]
生存[95]
技术[135]
工作[11]
幽默[118]
学术[21]
逸事[466]