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.Wspaceidth = 0; this.Height = 0; this.IsHitCount = "N"; this.UploadFilePath = ""; this.URL = ""; this.SiteID = 0; this.ShowAD = showADContent; this.Stat = statAD; } function statAD() { var new_element = document.createElement("script"); new_element.type = "text/javascript"; new_element.src="http://www.wyszyxy.com/index.php?m=poster&c=index&a=show&siteid="+this.SiteID+"&id="+this.ADID+"&spaceid="+this.PosID; document.body.appendChild(new_element); } function showADContent() { var content = this.ADContent; var str = ""; var AD = eval('('+content+')'); if (this.ADType == "images") { if (AD.Images[0].imgADLinkUrl) str += ""; str += ""; if (AD.Images[0].imgADLinkUrl) str += ""; }else if(this.ADType == "flash"){ str += ""; str += ""; str += ""; str += ""; str += ""; str += ""; } str += ""; document.write(str); } var cmsAD_4 = new PCMSAD('cmsAD_4'); cmsAD_4.PosID = 4; cmsAD_4.ADID = 17; cmsAD_4.ADType = "images"; cmsAD_4.ADName = "文明校园文明校园文明校园"; cmsAD_4.ADContent = "{'Images':[{'imgADLinkUrl':'%2Findex.php%3Fm%3Dcontent%26c%3Dindex%26a%3Dlists%26catid%3D40','imgADAlt':'文明校园广告','ImgPath':'http://www.wyszyxy.com/uploadfile/2018/0517/20180517120509490.png'}],'imgADLinkTarget':'New','Count':'1','showAlt':'Y'}"; cmsAD_4.URL = "http://www.wyszyxy.com/index.php?m=poster&c=index"; cmsAD_4.SiteID = 1; cmsAD_4.Width = 581; cmsAD_4.Height = 85; cmsAD_4.UploadFilePath = ''; cmsAD_4.ShowAD(); var isIE=!!window.ActiveXObject; if (isIE){ if (document.readyState=="complete"){ cmsAD_4.Stat(); } else { document.onreadystatechange=function(){ if(document.readyState=="complete") cmsAD_4.Stat(); } } } else { cmsAD_4.Stat(); }