不知是否这样
<script language="javascript">
suspendcode="<DIV id=lovexin style='Z-INDEX: 10; LEFT: 883px; POSITION: absolute; TOP: 200px; width: 88px; height: 203px;'>";
suspendcode +='<table><tr><td width="263" height="45" valign="top"><!--DWLayoutEmptyCell--><a target=blank href=http://wpa.qq.com/msgrd?V=1&Uin=23497360&Site=http://www.xianarmy.com&Menu=yes><img border="0" SRC=http://wpa.qq.com/pa?p=1:23497360:4  alt="军事家客服"></a>军事家客服</td></tr></table>';
suspendcode +="<a href='http://www.xianarmy.com'><img src='images/qqonline.jpg' width='120' height='223' border='0'></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);
</script>