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 = "N"; this.UploadFilePath = ""; this.URL = ""; this.SiteID = 0; this.ShowAD = showADContent; this.Stat = statAD; } function statAD(id) { var sp = document.createElement("SCRIPT"); sp.type = "text/javascript"; sp.src = "http://www.chinabuses.com/index.php?m=poster&c=index&a=show&siteid="+this.SiteID+"&id="+id+"&spaceid="+this.PosID; document.body.appendChild(sp); } function showADContent() { var content = this.ADContent; var isIE=!!window.ActiveXObject; var str = "
"; var AD = eval('('+content+')'); var count = 0; if(AD.ADImage.length){ count = AD.ADImage.length; } for(var i=0;i"+AD.ADImage[i].imgADAlt+"0){ sizeStr = " height='"+this.Height+"' "; }else if(this.Width>0&&this.Height==0){ sizeStr = " width='"+this.Width+"' "; }else{ sizeStr = (this.Width < this.Height) ? " width='"+this.Width+"' " : " height='"+this.Height+"' "; } str += sizeStr; str += " style='border:0px;'/>"; } str += "
"; document.write(str); } var cmsAD_114 = new PCMSAD('cmsAD_114'); cmsAD_114.PosID = 2; cmsAD_114.ADID = 114; cmsAD_114.ADType = "images"; cmsAD_114.ADName = "客车网2017"; cmsAD_114.ADContent = "{'ADImage':[ {'imgID':'114','imgADLinkUrl':'http%3A%2F%2Fwww.chinabuses.com%2F','imgADAlt':'中国客车网-客车行业领先门户网站','ImgPath':'http://www.chinabuses.com/uploadfile/2017/1011/20171011052726133.gif','imgADLinkTarget':'New','showAlt':'Y'} ]}"; cmsAD_114.URL = "http://www.chinabuses.com/index.php?m=poster&c=index&a=poster_click"; cmsAD_114.SiteID = 1; cmsAD_114.Width = 468; cmsAD_114.Height = 68; cmsAD_114.UploadFilePath = ""; cmsAD_114.ShowAD();