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("#rightDiv{width:118px;position:absolute;height:220px;background:url(/images/QQonline.gif);}");
document.writeln(".itemFloat{width:118px;height:auto;padding-top:162px;text-align:center;}");
document.writeln(".itemFloat img {margin-bottom:6px;}");
document.writeln("<\/style>");
document.writeln("<div id=\"rightDiv\" style=\"top:66px;left:-130px\">");
document.writeln("<div id=\"right\" class=\"itemFloat\">");
document.writeln("<a href=\"tencent://message/?uin=2405125636&Site=fromalideyun&Menu=yes\">");
document.writeln("<img border=0 src=/images/btn_2.gif>");
document.writeln("<\/a>");
document.writeln("<br\/>")
document.writeln("<a href=\"msnim:chat?contact=yorkdent@hotmail.com\">");
document.writeln("<img border=0 src=/images/btn_3.gif>");
document.writeln("<\/a>");
document.writeln("<\/div>");
document.writeln("<\/div>");
