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://liconux.cn/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_14 = new PCMSAD('cmsAD_14'); cmsAD_14.PosID = 12; cmsAD_14.ADID = 14; cmsAD_14.ADType = "images"; cmsAD_14.ADName = "戛纳系列"; cmsAD_14.ADContent = "{'ADImage':[ {'imgID':'14','imgADLinkUrl':'http%3A%2F%2Fliconux.cn%2Fpro%2Fjn%2F','imgADAlt':'戛纳','ImgPath':'http://liconux.cn/uploadfile/2019/1125/20191125060829539.jpg','imgADLinkTarget':'New','showAlt':'Y'} , {'imgID':'15','imgADLinkUrl':'http%3A%2F%2Fliconux.cn%2Fhanlin%2F','imgADAlt':'塞纳世家','ImgPath':'http://liconux.cn/uploadfile/2019/1125/20191125060910984.jpg','imgADLinkTarget':'New','showAlt':'Y'} , {'imgID':'16','imgADLinkUrl':'http%3A%2F%2Fliconux.cn%2Findex.php%3Fm%3Dcontent%26c%3Dindex%26a%3Dlists%26catid%3D55','imgADAlt':'爱洛家','ImgPath':'http://liconux.cn/uploadfile/2019/1125/20191125060927788.jpg','imgADLinkTarget':'New','showAlt':'Y'} ]}"; cmsAD_14.URL = "http://liconux.cn/index.php?m=poster&c=index&a=poster_click"; cmsAD_14.SiteID = 1; cmsAD_14.Width = 324; cmsAD_14.Height = 500; cmsAD_14.UploadFilePath = ""; cmsAD_14.ShowAD();