document.write("
关闭
"); document.write("
关闭
"); window.setInterval("heartBeatt()",1); lastScrollY=0; ad2= + 30; function heartBeatt() { var diffYy; var scroll = true; if(document.documentElement && document.documentElement.scrollTop) { diffYy = document.documentElement.scrollTop; } else if (document.body && scroll) { diffYy = document.body.scrollTop; } else { diffYy = 0; } percent=.1*(diffYy-lastScrollY); if(percent>0) { percent=Math.ceil(percent); } else { percent=Math.floor(percent); } var r1 = parseInt(document.getElementById("RightAda1").style.top); var l1 = parseInt(document.getElementById("LeftAda1").style.top); document.getElementById("RightAda1").style.top=r1+percent+"px"; document.getElementById("LeftAda1").style.top=l1+percent+"px"; lastScrollY=lastScrollY+percent; } function ClosedivLeft(number, align) { if (number > 2 == 0) { if( document.getElementById('LeftAda' + number) && align == 'l') { document.getElementById('LeftAda' + number).style.visibility="hidden"; } else if ( document.getElementById('RightAda' + number) && align == 'r') { document.getElementById('RightAda' + number).style.visibility="hidden"; } } else { if( document.getElementById('LeftAda' + number) && align == 'l') { document.getElementById('LeftAda' + number).style.display="none"; } else if( document.getElementById('RightAda' + number) && align == 'r') { document.getElementById('RightAda' + number).style.display="none"; } } } /*function ClosedivLeft2() { if( document.getElementById('LeftAda2') ) { document.getElementById('LeftAda2').style.visibility="hidden"; } if( document.getElementById('RightAda2') ) { document.getElementById('RightAda2').style.visibility="hidden"; } }*/