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.sqrsks.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_16 = new PCMSAD('cmsAD_16'); cmsAD_16.PosID = 12; cmsAD_16.ADID = 16; cmsAD_16.ADType = "images"; cmsAD_16.ADName = "专业技术人员继续教育"; cmsAD_16.ADContent = "{'ADImage':[ {'imgID':'16','imgADLinkUrl':'http%3A%2F%2Fwww.sqrspx.com%2F','imgADAlt':'专业技术人员继续教育','ImgPath':'http://www.sqrsks.com/uploadfile/2016/0110/20160110021809962.jpg','imgADLinkTarget':'New','showAlt':'Y'} ]}"; cmsAD_16.URL = "http://www.sqrsks.com/index.php?m=poster&c=index&a=poster_click"; cmsAD_16.SiteID = 1; cmsAD_16.Width = 230; cmsAD_16.Height = 50; cmsAD_16.UploadFilePath = ""; cmsAD_16.ShowAD();