function closeAd(){ AdLayer.style.visibility='hidden'; } function closeAd2(){ AdLayerRS.style.visibility='hidden'; } function init() { initAd();//载入页面后,调用函数initAd() initAdRS(); } function initAd() { //document.all.AdLayer.style.posTop = -200; //设置onLoad事件激发以后,广告层相对于固定后的y方向位置 document.all.AdLayer.style.visibility = 'visible'//设置层为可见 MoveLayer('AdLayer');//调用函数MoveLayer() } function MoveLayer(layerName) { //var x = 0;//浮动广告层固定于浏览器的x方向位置 var y = 5;//浮动广告层固定于浏览器的y方向位置 var diff = (document.body.scrollTop + y - document.all.AdLayer.style.posTop)*.40; var y = document.body.scrollTop + y - diff; eval("document.all." + layerName + ".style.posTop = y"); //eval("document.all." + layerName + ".style.posLeft = x");//移动广告层 setTimeout("MoveLayer('AdLayer');", 20);//设置20毫秒后再调用函数MoveLayer() } function initAdRS() { //document.all.AdLayerRS.style.posTop = -200; //设置onLoad事件激发以后,广告层相对于固定后的y方向位置 document.all.AdLayerRS.style.visibility = 'visible'//设置层为可见 MoveLayerRS('AdLayerRS');//调用函数MoveLayerRS() } function MoveLayerRS(layerName) { //var x = screen.width-130;//浮动广告层固定于浏览器的x方向位置 var y = 5;//浮动广告层固定于浏览器的y方向位置 var diff = (document.body.scrollTop + y - document.all.AdLayerRS.style.posTop)*.40; var y = document.body.scrollTop + y - diff; eval("document.all." + layerName + ".style.posTop = y"); //eval("document.all." + layerName + ".style.posLeft = x");//移动广告层 setTimeout("MoveLayerRS('AdLayerRS');", 20);//设置20毫秒后再调用函数MoveLayerRS() } var list = new Array; var strs=list[0][0].substring(list[0][0].length-4,list[0][0].length); if (strs!=".SWF" && strs!=".swf"){ document.write("
") } else{ document.write("
") } var strs=list[0][0].substring(list[0][0].length-4,list[0][0].length); if (strs!=".SWF" && strs!=".swf"){ document.write("
") } else{ document.write("
") }