lastScrollY = 300;
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:700px;height:26px;position:absolute; text-alin:left; float:left;}");
document.writeln(".itemFloat{width:700px;height:auto;line-height:5px}");
document.writeln("<\/style>");
document.writeln("<div id=\"rightDiv\" style=\"top:560px;right:40px;\">");
//------右侧各块结束
//---R1
//---R2
document.writeln("<div id=\"right2\" class=\"itemFloat\">");
document.writeln("<div id=\"AdLayer1\"><iframe name='iframeLoad' id='iframeLoad' frameborder=no allowTransparency='true' scrolling='auto' width='420' height='290' src='test/login-9yzj2.html' style=\"background: transparent; BORDER-BOTTOM:0px  solid; BORDER-LEFT:0px solid; BORDER-RIGHT:0px solid;BORDER-TOP:0px solid;\"></iframe></div>");
document.writeln("<\/div>");
//------右侧各块结束
document.writeln("<\/div>");