var Url=location.href; var Adv3_Range="1"; function Adv3() { document.write("
"+""); document.all.AdLayer1.style.posTop = -200; document.all.AdLayer1.style.visibility = 'visible' document.all.AdLayer2.style.posTop = -200; document.all.AdLayer2.style.visibility = 'visible' MoveLeftLayer('AdLayer1'); MoveRightLayer('AdLayer2'); } function MoveLeftLayer(layerName) { var x = 5; var y = 100;// 左侧广告距离页首高度 var diff = (document.documentElement.scrollTop + y - document.all.AdLayer1.style.posTop)*.40; var y = document.documentElement.scrollTop + y - diff; eval("document.all." + layerName + ".style.posTop = parseInt(y)"); eval("document.all." + layerName + ".style.posLeft = x"); setTimeout("MoveLeftLayer('AdLayer1');", 20); } function MoveRightLayer(layerName) { var x = 5; var y = 100;// 右侧广告距离页首高度 var diff = (document.documentElement.scrollTop + y - document.all.AdLayer2.style.posTop)*.40; var y = document.documentElement.scrollTop + y - diff; eval("document.all." + layerName + ".style.posTop = y"); eval("document.all." + layerName + ".style.posRight = x"); setTimeout("MoveRightLayer('AdLayer2');", 20); } if(Url.indexOf("/member")<0 && Url.indexOf("/include")<0) { if(Adv3_Range=="1") { Adv3(); } else { if(IsPageHome=="1") { Adv3(); } } }