
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("leftDiv").style.top = parseInt(document.getElementById("leftDiv").style.top)+percent+"px";
document.getElementById("rightDiv").style.top = parseInt(document.getElementById("rightDiv").style.top)+percent+"px";
lastScrollY=lastScrollY+percent;
//alert(lastScrollY);
}
//下面这段删除后，对联将不跟随屏幕而移动。
window.setInterval("heartBeat()",1);
//-->
//关闭按钮
function close_left1(){
    left1.style.visibility='hidden';
}
function close_left2(){
    left2.style.visibility='hidden';
}
function close_right1(){
    right1.style.visibility='hidden';
}
function close_right2(){
    right2.style.visibility='hidden';
}

//显示样式
document.writeln("<style type=\"text\/css\">");
document.writeln("#leftDiv,#rightDiv{width:100px;height:100px; position:absolute;}");
document.writeln(".itemFloat{width:100px;height:auto;line-height:5px}");
document.writeln("<\/style>");
//以下为主要内容
document.writeln("<div id=\"leftDiv\" style=\"top:550px;left:120px\">");
//------左侧各块开始
//---L1
document.writeln("<div id=\"left1\" class=\"itemFloat\">");
 
document.writeln("<\/div>");

//---L2

document.writeln("<div id=\"left2\" class=\"itemFloat\">");
document.writeln("<a target=_blank href=http://www.cnluolun.com/shengming/><img border=0 src=http://www.cnluolun.com.cn/luolunqq/shengming.gif></a>");
document.writeln("<\/div>");


//------左侧各块结束
document.writeln("<\/div>");
document.writeln("<div id=\"rightDiv\" style=\"top:340px;right:5px\">");
//------右侧各块结束
//---R1
document.writeln("<div id=\"right1\" class=\"itemFloat\">");
 
document.writeln("<\/div>");
//---R2
document.writeln("<div id=\"right2\" class=\"itemFloat\">");
document.writeln("	<table width=\"109\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" background=\"很有特色的荧光鼠标/qqonline_middle.gif\">");
document.writeln("		<tr>");
document.writeln("			<td width=\"109\">");
document.writeln("			<IMG height=70 src=\"http://www.cnluolun.com/files/kefu_up.gif\" width=110 ");
document.writeln("      border=0></td>");
document.writeln("		</tr>");
document.writeln("		<tr>");
document.writeln("		<TD vAlign=center align=center background=http://www.cnluolun.com/files/kefu_middle.gif><P>");
document.writeln("<a target=\"blank\" href=\"http://wpa.qq.com/msgrd?V=1&Uin=1415121418&Site=北京罗伦&Menu=yes\">");
document.writeln("<img src=\"http://wpa.qq.com/pa?p=1:1415121418:7\" alt=\"点击这里给我发消息\" width=\"71\" height=\"24\" border=\"0\" /></a>");
document.writeln("<br>");
document.writeln("<a target=\"blank\" href=\"http://wpa.qq.com/msgrd?V=1&amp;Uin=605949180&amp;Site=北京罗伦&amp;Menu=yes\">");
document.writeln("<img src=\"http://wpa.qq.com/pa?p=1:605949180:7\" alt=\"点击这里给我发消息\" width=\"71\" height=\"24\" border=\"0\" /></a><br>");
document.writeln("<a target=\"blank\" href=\"http://wpa.qq.com/msgrd?V=1&amp;Uin=1661239696&amp;Site=北京罗伦&amp;Menu=yes\">");
document.writeln("<img src=\"http://wpa.qq.com/pa?p=1:1661239696:7\" alt=\"点击这里给我发消息\" width=\"71\" height=\"24\" border=\"0\" /></a><br>");
document.writeln("");
document.writeln("<a href=\"msnim:chat?contact=qianbitou@hotmail.com\" target=\"blank\"><img src=\"http://www.cnluolun.com/images/7_online1.gif\" width=\"71\" height=\"24\" border=\"0\" /></a><br>");
document.writeln("<a href=\"msnim:chat?contact=shuaihama@hotmail.com\"target=\"blank\" ><img src=\"http://www.cnluolun.com/images/7_online1.gif\" width=\"71\" height=\"24\" border=\"0\" /></a><br>");
document.writeln("					");
document.writeln("<a href=\"msnim:chat?contact=bjloulun010@hotmail.com\" target=\"blank\"><img src=\"http://www.cnluolun.com/images/7_online1.gif\" width=\"71\" height=\"24\" border=\"0\" /></a><br>			");
document.writeln("					");
document.writeln("			</P></TD>");
document.writeln("		</tr>");
document.writeln("		<tr>");
document.writeln("		  <td><IMG height=31 src=\"http://www.cnluolun.com/files/kefu_down.gif\" width=110 ");
document.writeln("      border=0></td>");
document.writeln("	  </tr>");
document.writeln("	</table></div>");
//------右侧各块结束
document.writeln("<\/div>");
