
var date;
jQuery.ajax({url:"countdown.jsp?date=20101101",async:false,type:"POST",data:{rnd:Math.random(),bid:1},dataType:"html",success:function(data){
date = data;}});
suspendcode="<DIV id=lovexin1 style='Z-INDEX: 10; LEFT: 10px; POSITION: absolute; TOP: 25px; width: 95; height: 203px;'><img src='images/close.gif' onClick='javascript:window.hide1()' width='80' height='20' border='0' vspace='3' alt='关闭对联广告'><a href='http://www.njqh.gov.cn/site/njqh/pczl2.htm' target='_blank'><img src='images/rkpc.jpg' width='80' height='160' border='0' ></a></DIV>"
document.write(suspendcode);
suspendcode="<DIV id=lovexin2 style='visibility:hidden;Z-INDEX: 10; LEFT: 900px; POSITION: absolute; TOP: 25px; width: 95; height: 203px;'><img src='images/close.gif' onClick='javascript:window.hide2()' width='80' height='20' border='0' vspace='3' alt='关闭对联广告'><img src='images/4620.jpg' width='80' height='160' border='0' ></DIV>"
document.write(suspendcode);


suspendcode="<DIV id=lovexin3 style='visibility:hidden;Z-INDEX: 10; LEFT: 10px; POSITION: absolute; TOP: 305px; width: 95; height: 203px;'><img src='close.gif' onClick='javascript:window.hide3()' width='80' height='20' border='0' vspace='3' alt='关闭对联广告'><a href='http://www.njhome.net.cn/dispbbs.asp?boardID=4&ID=26812&page=1' target='_blank'><img src='images/zfgjj.jpg' width='80' height='160' border='0' ></a></DIV>"
document.write(suspendcode);
suspendcode="<DIV id=lovexin4 style='visibility:hidden;Z-INDEX: 10; LEFT: 900px; POSITION: absolute; TOP: 305px; width: 95; height: 203px;'><img src='close.gif' onClick='javascript:window.hide4()' width='80' height='20' border='0' vspace='3' alt='关闭对联广告'><a href='0331gs.htm' target='_blank'><img src='images/0331gs.jpg' width='80' height='160' border='0' ></a></DIV>"
document.write(suspendcode);
lastScrollY=0;
function heartBeat(){
diffY=document.body.scrollTop;
percent=.3*(diffY-lastScrollY);
if(percent>0)percent=Math.ceil(percent);
else percent=Math.floor(percent);
document.all.lovexin1.style.pixelTop+=percent;
document.all.lovexin2.style.pixelTop+=percent;

document.all.lovexin3.style.pixelTop+=percent;
document.all.lovexin4.style.pixelTop+=percent;
lastScrollY=lastScrollY+percent;
}
function hide1()  
{   
lovexin1.style.visibility="hidden"; 
}
function hide2()  
{   
lovexin2.style.visibility="hidden";
}
function hide3()  
{   
lovexin3.style.visibility="hidden"; 
}
function hide4()  
{   
lovexin4.style.visibility="hidden"; 
}
window.setInterval("heartBeat()",1);

