﻿//符合web标准且可关闭的多幅对联广告
//Modified By 在远方
<!--
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("leftDiv").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:0px;height:auto;background-color:#e5e5e5;position:absolute;}");
document.writeln(".itemFloat{width:0px;height:auto;position:absolute;visibility:visible}");
document.writeln("<\/style>");
//以下为主要内容
document.writeln("<div id=\"leftDiv\" style=\"top:0px;left:2px\">");
//------左侧各块开始
//---L1
document.writeln("<div id=\"left1\" class=\"itemFloat\">");
document.writeln("<TABLE cellSpacing=0 cellPadding=0 width=95>");
document.writeln("	<TBODY>");
document.writeln("		<TR>");
document.writeln("			<TD align=middle>");
document.writeln("			<TABLE cellSpacing=0 cellPadding=0 width=94 border=0>");
document.writeln("				<TBODY>");
document.writeln("					<TR>");
document.writeln("						<TD width=94><IMG src=../cn_img/kefu/kefu_up.gif border=0><\/TD>");
document.writeln("					<\/TR>");
document.writeln("					<TR>");
document.writeln("						<TD Align=center vAlign=center background=../cn_img/kefu/kefu_middle.gif>");
document.writeln("						<a target=blank");
document.writeln("							href=tencent:\/\/message\/?uin=695199042&Site=www.diaolv.com&Menu=yes><img");
document.writeln("							border=\"0\" SRC=http:\/\/wpa.qq.com\/pa?p=1:695199042:7 alt=\"695199042*_*点击咨询\"><\/a>");
document.writeln("						<a target=blank");
document.writeln("							href=tencent:\/\/message\/?uin=695199042&Site=www.diaolv.com&Menu=yes><img");
document.writeln("							border=\"0\" SRC=http:\/\/wpa.qq.com\/pa?p=1:695199042:7 alt=\"695199042#_#点击咨询\"><\/a>");
document.writeln("						<\/TD>");
document.writeln("					<\/TR>");
document.writeln("					<TR>");
document.writeln("						<TD width=94><a href=\"#\"");
document.writeln("							onClick=\"MM_showHideLayers(\'AdQQLayer\',\'\',\'hide\');\"> <IMG");
document.writeln("							src=../cn_img/kefu/kefu_down.gif useMap=#Map border=0><\/a><\/TD>");
document.writeln("					<\/TR>");
document.writeln("				<\/TBODY>");
document.writeln("			<\/TABLE>");
document.writeln("			<\/TD>");
document.writeln("		<\/TR>");
document.writeln("	<\/TBODY>");
document.writeln("<\/TABLE>");
document.writeln("<br>");
document.writeln("<a target=_blank href=http://wpa.qq.com/msgrd?V=1&Uin=695199042&Site=在线咨询&Menu=no><img border=0 src=../cn_img/left.jpg></a>");

document.writeln("<\/div>");
//------左侧各块结束
document.writeln("<\/div>");
document.writeln("<div id=\"rightDiv\" style=\"top:140px;right:95px\">");
//------右侧各块结束
//---R1
document.writeln("<div id=\"right1\" class=\"itemFloat\">");
document.writeln("<br>");
document.writeln("<br>");
document.writeln("<br>");
document.writeln("<br>");
document.writeln("<br>");
document.writeln("<br>");
document.writeln("<br>");
document.writeln("<br>");
document.writeln("<br>");
document.writeln("<br>");
document.writeln("<br>");
document.writeln("<br>");
document.writeln("<a target=_blank href=http://wpa.qq.com/msgrd?V=1&Uin=695199042&Site=在线咨询&Menu=no><img border=0 src=../cn_img/right.jpg></a>");

document.writeln("<\/div>");
//------右侧各块结束
document.writeln("<\/div>");
