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 = "https://www.chinatruck.org/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_79 = new PCMSAD('cmsAD_79'); cmsAD_79.PosID = 5; cmsAD_79.ADID = 79; cmsAD_79.ADType = "images"; cmsAD_79.ADName = "乘龙汽车"; cmsAD_79.ADContent = "{'ADImage':[ {'imgID':'79','imgADLinkUrl':'https%3A%2F%2Fwww.chinatruck.org%2Fbrand_24.html','imgADAlt':'乘龙汽车','ImgPath':'https://www.chinatruck.org/uploadfile/2021/0409/20210409053538640.gif','imgADLinkTarget':'New','showAlt':'Y'} , {'imgID':'12','imgADLinkUrl':'https%3A%2F%2Fwww.chinatruck.org%2Fbrand_464.html','imgADAlt':'创富路上幸福车','ImgPath':'https://www.chinatruck.org/uploadfile/2021/0506/20210506021928759.gif','imgADLinkTarget':'New','showAlt':'Y'} , {'imgID':'75','imgADLinkUrl':'https%3A%2F%2Fwww.chinatruck.org%2Fnews%2F202105%2F21_97278.html','imgADAlt':'瑞江罐车','ImgPath':'https://www.chinatruck.org/uploadfile/2021/0526/20210526085144940.gif','imgADLinkTarget':'New','showAlt':'Y'} , {'imgID':'14','imgADLinkUrl':'https%3A%2F%2Fwww.chinatruck.org%2Fdiscovery%2F2020%2Fitem_518.html','imgADAlt':'解放轻卡','ImgPath':'https://www.chinatruck.org/uploadfile/2021/0423/20210423082937594.gif','imgADLinkTarget':'New','showAlt':'Y'} , {'imgID':'55','imgADLinkUrl':'https%3A%2F%2Fwww.chinatruck.org%2Fbrand_414.html','imgADAlt':'比亚迪汽车','ImgPath':'https://www.chinatruck.org/uploadfile/2019/1121/20191121101126592.png','imgADLinkTarget':'New','showAlt':'Y'} ]}"; cmsAD_79.URL = "https://www.chinatruck.org/index.php?m=poster&c=index&a=poster_click"; cmsAD_79.SiteID = 1; cmsAD_79.Width = 230; cmsAD_79.Height = 90; cmsAD_79.UploadFilePath = ""; cmsAD_79.ShowAD();