suspendcode="<DIV id=lovexin1_float style='Z-INDEX: 10; LEFT: "+((window.screen.width-800)/2-100)+"px; POSITION: absolute; TOP: 105px; width: 100; height: 190px;'><table  border=0 cellspacing=0 cellpadding=0  border=0><tr><td><img src='float/images/close.gif' onClick='javascript:window.hide()' width='100' height='19' border='0' vspace='3' alt='关闭对联广告'></td></tr><tr><td><a href='http://www.zzyc.net/pages/file/20080630101022_92193.html'><img src='float/images/ad_left.jpg' width='100' height='190' border='0'></a></td></tr></table></DIV>"
document.write(suspendcode);

suspendcode="<DIV id=lovexin2_float style='Z-INDEX: 10; right: "+((window.screen.width-800)/2-100)+"px; POSITION: absolute; TOP: 105px; width: 100; height: 190px;'><table  border=0 cellspacing=0 cellpadding=0  border=0><tr><td><img src='float/images/close.gif' onClick='javascript:window.hide()' width='100' height='19' border='0' vspace='3' alt='关闭对联广告'></td></tr><tr><td><a href='http://www.zzyc.net/pages/file/20080630101022_92193.html'><img src='float/images/ad_right.jpg' width='100' height='190' border='0'></a></td></tr></table></DIV>"
document.write(suspendcode);

//flash格式调用方法
//<EMBED src='flash.swf' quality=high  WIDTH=100 HEIGHT=200 TYPE='application/x-shockwave-flash' id=ad wmode=opaque></EMBED>

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_float.style.pixelTop+=percent;
document.all.lovexin2_float.style.pixelTop+=percent;
lastScrollY=lastScrollY+percent;
}
function hide()  
{   
lovexin1_float.style.visibility="hidden"; 
lovexin2_float.style.visibility="hidden";
}
window.setInterval("heartBeat()",1);
