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.hner.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_38 = new PCMSAD('cmsAD_38'); cmsAD_38.PosID = 22; cmsAD_38.ADID = 38; cmsAD_38.ADType = "images"; cmsAD_38.ADName = "点点通宣传位"; cmsAD_38.ADContent = "{'ADImage':[ {'imgID':'38','imgADLinkUrl':'http%3A%2F%2Fddt.hner.cn%2F','imgADAlt':'河南省教学“点点通”专题资源','ImgPath':'http://www.hner.cn/uploadfile/2017/0612/20170612103418102.png','imgADLinkTarget':'New','showAlt':'Y'} , {'imgID':'39','imgADLinkUrl':'http%3A%2F%2Fjxd.eduyun.cn%2Fcms%2Fjxds%2F1617ywfirstgrade.html','imgADAlt':'国家教学点项目人教版课程资源','ImgPath':'http://www.hner.cn/uploadfile/2017/0612/20170612103827382.png','imgADLinkTarget':'New','showAlt':'Y'} , {'imgID':'40','imgADLinkUrl':'http%3A%2F%2Fdownload.hner.cn%2Fxsd%2F','imgADAlt':'教学点项目西师大版课程资源','ImgPath':'http://www.hner.cn/uploadfile/2017/0612/20170612103659421.png','imgADLinkTarget':'New','showAlt':'Y'} ]}"; cmsAD_38.URL = "http://www.hner.cn/index.php?m=poster&c=index&a=poster_click"; cmsAD_38.SiteID = 1; cmsAD_38.Width = 250; cmsAD_38.Height = 80; cmsAD_38.UploadFilePath = ""; cmsAD_38.ShowAD();