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 = "/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_11 = new PCMSAD('cmsAD_11'); cmsAD_11.PosID = 11; cmsAD_11.ADID = 11; cmsAD_11.ADType = "images"; cmsAD_11.ADName = "slider01"; cmsAD_11.ADContent = "{'ADImage':[ {'imgID':'11','imgADLinkUrl':'','imgADAlt':'','ImgPath':'/uploadfile/2016/0831/20160831014732306.jpg','imgADLinkTarget':'New','showAlt':'Y'} , {'imgID':'16','imgADLinkUrl':'','imgADAlt':'','ImgPath':'/uploadfile/2016/1213/20161213040636842.jpg','imgADLinkTarget':'New','showAlt':'Y'} , {'imgID':'13','imgADLinkUrl':'','imgADAlt':'','ImgPath':'/uploadfile/2016/1213/20161213040725377.jpg','imgADLinkTarget':'New','showAlt':'Y'} , {'imgID':'17','imgADLinkUrl':'','imgADAlt':'','ImgPath':'/uploadfile/2016/1213/20161213040748197.jpg','imgADLinkTarget':'New','showAlt':'Y'} ]}"; cmsAD_11.URL = "/index.php?m=poster&c=index&a=poster_click"; cmsAD_11.SiteID = 1; cmsAD_11.Width = 1366; cmsAD_11.Height = 450; cmsAD_11.UploadFilePath = ""; cmsAD_11.ShowAD();