lastScrollY = 0;
function heartBeat(){
var diffY;
if (document.documentElement && document.documentElement.scrollTop)
diffY = document.documentElement.scrollTop;
else if (document.body)
diffY = document.body.scrollTop
else
{/*Netscape stuff*/}
//alert(diffY);
percent=.1*(diffY-lastScrollY);
if(percent>0)percent=Math.ceil(percent);
else percent=Math.floor(percent);
document.getElementById("rightDiv").style.top = parseInt(document.getElementById("rightDiv").style.top)+percent+"px";
lastScrollY=lastScrollY+percent;
//alert(lastScrollY);
}
//下面这段删除后，对联将不跟随屏幕而移动?
window.setInterval("heartBeat()",1);
//-->
//显示样式
document.writeln("<style type=\"text/css\">");
document.writeln("#leftDiv,#rightDiv{width:32px;height:39px;position:absolute;}");
document.writeln(".itemFloat{width:75px;height:auto;line-height:5px}");
document.writeln("</style>");
//以下为主要内?

document.writeln("<div id=\"rightDiv\" style=\"top:325px;right:80px !important;right:10px\">");
//------右侧各块结束
//---R2
document.writeln("<div id=\"right2\" class=\"xuanfu\">");
document.writeln("<ul>");
document.writeln("<li><a href=\"msnim:chat?contact=alex.amoy@hotmail.com\"><img src=\"images/msn.jpg\"></a></li>");
document.writeln("<li><a href=\"http://sighttp.qq.com/cgi-bin/check?sigkey=c97530152a152d4ef9886f622e8313786004c2e6bebaddc4934059cbbc255a06\"; target=_blank; onclick=\"var tempSrc='http://sighttp.qq.com/wpa.js?rantime='+Math.random()+'&sigkey=c97530152a152d4ef9886f622e8313786004c2e6bebaddc4934059cbbc255a06';var oldscript=document.getElementById('testJs');var newscript=document.createElement('script');newscript.setAttribute('type','text/javascript'); newscript.setAttribute('id', 'testJs');newscript.setAttribute('src',tempSrc);if(oldscript == null){document.body.appendChild(newscript);}else{oldscript.parentNode.replaceChild(newscript, oldscript);}return false;\"><img border=\"0\" SRC='http://wpa.qq.com/pa?p=1:1277857365:41' alt=\"\"></a></li>");
//document.writeln("<li><a target='_blank' href='http://web.im.alisoft.com/msg.aw?v=2&uid=shengzhongvalve&site=cnalichn&s=1' ><img border='0' src='http://web.im.alisoft.com/online.aw?v=2&uid=shengzhongvalve&site=cnalichn&s=1' alt='发送旺旺即时消? /></a></li>");
document.writeln("<li class=\"xu_ft\"></li>");
document.writeln("</ul>");
document.writeln("</div>");
//------右侧各块结束
document.writeln("</div>");
