function closeAd(){ huashuolayer2.style.visibility='hidden'; huashuolayer3.style.visibility='hidden';} function winload() { huashuolayer2.style.top=200; huashuolayer2.style.left=10; huashuolayer3.style.top=200; huashuolayer3.style.right=10; } if(document.body.offsetWidth>800){ { document.write('
' +'
'); } winload() } lastScrollY=0; window.setInterval("renewtop()",10); function renewtop() { diffY=document.body.scrollTop; percent=.1*(diffY-lastScrollY); if(percent>0)percent=Math.ceil(percent); else percent=Math.floor(percent); huashuolayer3.style.pixelTop+=percent; huashuolayer2.style.pixelTop+=percent; lastScrollY=lastScrollY+percent; }