var adLeftSrc = "http://www.gtgxw.com/upload_files/ad/42_20150814090828_akixp.jpg" //图片地址 var adLeftFlash = "photo" var adLeftHref = "http://www.gtgxw.com/a_d/a_d_s.php?job=jump&id=24&url=aHR0cDovL3d3dy5ndGd4dy5jb20=" var adLeftWidth = '121' var adLeftHeight = '441' var adRightSrc = "http://www.gtgxw.com/upload_files/ad/42_20180213150236_oig3q.jpg"//图片地址 var adRightFlash = "photo" var adRightHref = "http://www.gtgxw.com/a_d/a_d_s.php?job=jump&id=24&url=aHR0cDovL3d3dy5ndGd4dy5jb20=" var adRightWidth = '121' var adRightHeight = '441' var marginTop = 300 //在这里更改距离浏览器底端的高度 var marginLeft = 5//在这里更改距离浏览器右端的高度 var navUserAgent = navigator.userAgent function load(){ judge(); move(); } function move() { judge(); setTimeout("move();",80) } function judge(){ if (navUserAgent.indexOf("Firefox") >= 0 || navUserAgent.indexOf("Opera") >= 0) { if (adLeftSrc != "") {document.getElementById("adLeftFloat").style.top = (document.body.scrollTop?document.body.scrollTop:document.documentElement.scrollTop) + ((document.body.clientHeight > document.documentElement.clientHeight)?document.documentElement.clientHeight:document.body.clientHeight) - adLeftHeight - marginTop + 'px';} if (adRightSrc != "") { document.getElementById("adRightFloat").style.top = (document.body.scrollTop?document.body.scrollTop:document.documentElement.scrollTop) + ((document.body.clientHeight > document.documentElement.clientHeight)?document.documentElement.clientHeight:document.body.clientHeight) - adRightHeight - marginTop + 'px'; document.getElementById("adRightFloat").style.left = ((document.body.clientWidth > document.documentElement.clientWidth)?document.body.clientWidth:document.documentElement.clientWidth) - adRightWidth - marginLeft + 'px'; } } else{ if (adLeftSrc != "") {document.getElementById("adLeftFloat").style.top = (document.body.scrollTop?document.body.scrollTop:document.documentElement.scrollTop) + ((document.documentElement.clientHeight == 0)?document.body.clientHeight:document.documentElement.clientHeight) - adLeftHeight - marginTop + 'px';} if (adRightSrc != "") { document.getElementById("adRightFloat").style.top = (document.body.scrollTop?document.body.scrollTop:document.documentElement.scrollTop) + ((document.documentElement.clientHeight == 0)?document.body.clientHeight:document.documentElement.clientHeight) - adRightHeight - marginTop + 'px'; document.getElementById("adRightFloat").style.left = ((document.documentElement.clientWidth == 0)?document.body.clientWidth:document.documentElement.clientWidth) - adRightWidth - marginLeft + 'px'; } } if (adLeftSrc != "") {document.getElementById("adLeftFloat").style.left = marginLeft + 'px';} } if (adLeftSrc != "") { if (adLeftFlash == "flash") { document.write("
"); document.write("
"); document.write("
"); }else{ document.write("
"); document.write("
"); document.write("
"); } } if (adRightSrc != "") { if (adRightFlash == "flash") { document.write("
"); document.write("
"); document.write("
"); }else{ document.write("
"); document.write("
"); document.write("
"); } } load(); function close_float_right(){ document.getElementById("adRightFloat").style.display="none"; } function close_float_left(){ document.getElementById("adLeftFloat").style.display="none"; } function close_ad(d){ document.getElementById(d).style.display="none"; } document.write('');