﻿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("leftDiv1").style.top = parseInt(document.getElementById("leftDiv").style.top)+percent+"px";
document.getElementById("rightDiv1").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_right1(){
    //right1.style.visibility='hidden';
//}

//显示样式
document.writeln("<style type=\"text\/css\">");
document.writeln("#leftDiv1,#rightDiv1{width:100px;height:100px;position:absolute;}");
document.writeln(".itemFloat{width:100px;height:auto;line-height:5px}");
document.writeln("<\/style>");
//以下为主要内容
document.writeln("<div id=\"leftDiv1\" style=\"top:30px;left:5px\">");

//------左侧各块开始
//---L1
document.writeln("<div id=\"left1\" class=\"itemFloat\">");
document.writeln("<embed src=/flash/pao.swf width=100 height=300 wmode=transparent allowscriptaccess=always quality=high pluginspage=http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash type=application/x-shockwave-flash></embed>");
//document.writeln("<img src='/flash/close.gif' onClick='javascript:close_left1()' width='100' height='14' border='0' vspace='3' alt='关闭对联广告'>");
document.writeln("<\/div>");
//---L2
//<embed height="300" width="100" flashvars="" wmode="transparent" allowscriptaccess="always" quality="high" name="27624681" id="27624681" style="" src="http://img.uu1001.cn/bcv3.swf?v=20111012" type="application/x-shockwave-flash"/></embed>
//------左侧各块结束
document.writeln("<\/div>");
document.writeln("<div id=\"rightDiv1\" style=\"top:30px;right:5px\">");
//------右侧各块结束
//---R1
document.writeln("<div id=\"right1\" class=\"itemFloat\">");
document.writeln("<embed src=/flash/pao.swf width=100 height=300 wmode=transparent allowscriptaccess=always quality=high pluginspage=http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash type=application/x-shockwave-flash></embed>");
//document.writeln("<img src='/flash/close.gif' onClick='javascript:close_right1()' width='100' height='14' border='0' vspace='3' alt='关闭对联广告'>");
document.writeln("<\/div>");
//---R2


//------右侧各块结束
document.writeln("<\/div>");
