suspendcode="<DIV id=left1_ad style='Z-INDEX: 10000; LEFT:0px; POSITION: absolute; TOP: 105px; width: 110; height: 350px;'><a href='http://www.cosoul.net/articles/News-386.html' target='_blank'><img   onMouseOut='left1_adhide()' src='http://www.cosoul.net/Images/indexad/left1.gif' width='110' height='350' border='0'></a></DIV><DIV id=left2_ad style='Z-INDEX: 10000;  LEFT:0px; POSITION: absolute; TOP: 105px;visibility:hidden; width: 9; height: 350px;'><a href='http://www.cosoul.net' target='_blank'><img onMouseOver='advisible()'  src='http://www.cosoul.net/Images/indexad/left9.jpg' width='9' height='350' border='0'></a></DIV>"
document.write(suspendcode);

suspendcode="<DIV id=right1_ad style='Z-INDEX: 10000; right: 0px; POSITION: absolute; TOP: 105px; width: 110; height: 350px;'><a href='http://www.cosoul.net/articles/News-386.html' target='_blank'><img onMouseOut='left1_adhide()'   src='http://www.cosoul.net/Images/indexad/right1.gif' width='110' height='350' border='0'></a></DIV><DIV id=right2_ad   style='Z-INDEX: 10000; right: 0px; POSITION: absolute; TOP: 105px; visibility:hidden; width: 9; height: 350px;'><a href='http://www.cosoul.net' target='_blank'><img onMouseOver='advisible()'   src='http://www.cosoul.net/Images/indexad/right9.jpg' width='9' height='350' border='0'></a></DIV>"
document.write(suspendcode); 

//flash格式调用方法
//<EMBED src='flash.swf'quality=high  WIDTH=100 HEIGHT=300 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.left1_ad.style.pixelTop+=percent;
document.all.right1_ad.style.pixelTop+=percent;
lastScrollY=lastScrollY+percent;
}
function advisible()  
{   
left1_ad.style.visibility="visible"; 
right1_ad.style.visibility="visible";
left2_ad.style.visibility="hidden"; 
right2_ad.style.visibility="hidden";
}
function left1_adhide()
{
left1_ad.style.visibility="hidden"; 
right1_ad.style.visibility="hidden";
left2_ad.style.visibility="visible"; 
right2_ad.style.visibility="visible";

}
setTimeout("left1_adhide()",5000);
window.setInterval("heartBeat()",1);


