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.Wspaceidth = 0; this.Height = 0; this.IsHitCount = "N"; this.UploadFilePath = ""; this.URL = ""; this.SiteID = 0; this.ShowAD = showADContent; this.Stat = statAD; } function statAD() { var new_element = document.createElement("script"); new_element.type = "text/javascript"; new_element.src="http://www.tznews.cn/index.php?m=poster&c=index&a=show&siteid="+this.SiteID+"&id="+this.ADID+"&spaceid="+this.PosID; document.body.appendChild(new_element); } function showADContent() { var content = this.ADContent; var str = ""; var AD = eval('('+content+')'); if (this.ADType == "images") { if (AD.Images[0].imgADLinkUrl) str += ""; str += ""; if (AD.Images[0].imgADLinkUrl) str += ""; }else if(this.ADType == "flash"){ str += ""; str += ""; str += ""; str += ""; str += ""; str += ""; } str += ""; document.write(str); } var cmsAD_40 = new PCMSAD('cmsAD_40'); cmsAD_40.PosID = 40; cmsAD_40.ADID = 33; cmsAD_40.ADType = "images"; cmsAD_40.ADName = "一汽大众"; cmsAD_40.ADContent = "{'Images':[{'imgADLinkUrl':'https://dealer.autohome.com.cn/84278/news_86804467.html','imgADAlt':'','ImgPath':'http://www.tznews.cn/uploadfile/2017/1222/20171222083254463.gif'}],'imgADLinkTarget':'New','Count':'1','showAlt':'Y'}"; cmsAD_40.URL = "http://www.tznews.cn/index.php?m=poster&c=index"; cmsAD_40.SiteID = 1; cmsAD_40.Width = 1140; cmsAD_40.Height = 60; cmsAD_40.UploadFilePath = ''; cmsAD_40.ShowAD(); var isIE=!!window.ActiveXObject; if (isIE){ if (document.readyState=="complete"){ cmsAD_40.Stat(); } else { document.onreadystatechange=function(){ if(document.readyState=="complete") cmsAD_40.Stat(); } } } else { cmsAD_40.Stat(); }