function PCMSAD(PID) { this.ID = PID; this.PosID = 0; this.ADID = 0; this.ADType = ""; this.ADName = ""; this.ADContent = ""; this.PaddingLeft = 0; this.PaddingTop = 0; this.Width = 0; this.Height = 0; this.IsHitCount = "Y"; this.Scroll = "N"; this.UploadFilePath = ""; this.URL = ""; this.SiteID = 0; this.ShowAD = showADContent; this.Start = doStart; this.Stat = statAD; } function statAD() { var new_element = document.createElement("script"); new_element.type = "text/javascript"; new_element.src="http://www.aqnews.com.cn/index.php?m=poster&c=index&a=show&siteid="+this.SiteID+"&spaceid="+this.ADID+"&id="+this.PosID; document.body.appendChild(new_element); } function showADContent() { var content = this.ADContent; var str = ""; var align = ""; var x = ""; var y = ""; var AD = eval('('+content+')'); if (this.ADType == "images") { for(var i=0;i"; if (AD.Images[i].imgADLinkUrl) str += ""; str += ""; if (AD.Images[i].imgADLinkUrl) str += ""; str += "
关闭
"; str += ""; document.write(str); } }else if(this.ADType == "flash"){ for(var i=0;i"; str += ""; str += ""; str += ""; str += ""; str += ""; str += ""; str += "
关闭
"; str += ""; document.write(str); } } } var lastScrollY=0; function heartBeat(Scroll){ var diffY; if (document.documentElement && document.documentElement.scrollTop) diffY = document.documentElement.scrollTop; else if (document.body) diffY = document.body.scrollTop; else {/*Netscape stuff*/} percent=.1*(diffY-lastScrollY); if (percent>0) percent = Math.ceil(percent); else percent = Math.floor(percent); document.getElementById("PCMSAD_"+Scroll+"_0").style.top=parseInt(document.getElementById ("PCMSAD_"+Scroll+"_0").style.top)+percent+"px"; document.getElementById("PCMSAD_"+Scroll+"_1").style.top=parseInt(document.getElementById ("PCMSAD_"+Scroll+"_1").style.top)+percent+"px"; lastScrollY=lastScrollY+percent; } function doStart() { if (cmsAD_49.Scroll=='Y') { setInterval("heartBeat(\""+cmsAD_49.PosID+"\")",10); } } var cmsAD_49 = new PCMSAD('cmsAD_49'); cmsAD_49.PosID = 49; cmsAD_49.ADID = 140; cmsAD_49.ADType = "images"; cmsAD_49.ADName = "直播广告"; cmsAD_49.ADContent = "{'Images':[ {'imgADLinkUrl':'http%3A%2F%2Fwww.aqnews.com.cn%2Fhtml%2Fothers%2Fad%2F201809%2F2987091.html','imgADAlt':'','ImgPath':'http://www.aqnews.com.cn/uploadfile/2018/1016/20181016103845196.jpg'}, {'imgADLinkUrl':'http%3A%2F%2Fwww.aqnews.com.cn%2Fhtml%2Fothers%2Fad%2F201811%2F3017951.html','imgADAlt':'','ImgPath':'http://www.aqnews.com.cn/uploadfile/2018/1106/20181106091227640.jpg'},],'imgADLinkTarget':'New','Count':'2','showAlt':'Y'}"; cmsAD_49.URL = "http://www.aqnews.com.cn/index.php?m=poster&c=index"; cmsAD_49.SiteID = 1; cmsAD_49.PaddingLeft = 55 ; cmsAD_49.PaddingTop = 185 ; cmsAD_49.Scroll = 'N'; cmsAD_49.Width = 200; cmsAD_49.Height = 300; cmsAD_49.UploadFilePath = ""; cmsAD_49.ShowAD(); var isIE=!!window.ActiveXObject; if (isIE){ if (document.readyState=="complete"){ cmsAD_49.Stat(); } else { document.onreadystatechange=function(){ if(document.readyState=="complete") cmsAD_49.Stat(); } } } else { cmsAD_49.Stat(); } cmsAD_49.Start();