把我的blog也能有浮标了

      偶思偶写 2004-12-3 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>
标签集:TAGS:
回复Comments() 点击Count()

回复Comments

{commentauthor}
{commentauthor}
{commenttime}
{commentnum}
{commentcontent}
作者:
{commentrecontent}