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="{APP_PATH}index.php?m=poster&c=index&a=show&siteid="+this.SiteID+"&spaceid="+this.ADID+"&id="+this.PosID; //document.body.appendChild(new_element); } function showADContent() { var content = this.ADContent; var str = ""; var AD = eval('('+content+')'); if (this.ADType == 1) { if (AD.Images[0].imgADLinkUrl) str += ""; str += ""; if (AD.Images[0].imgADLinkUrl) str += ""; }else if(this.ADType == 2){ str += ''; } str += ""; document.write(str); } var cmsAD_ = new PCMSAD('cmsAD_'); cmsAD_.PosID = 1; //版块ID号 cmsAD_.ADID = 1; //广告ID cmsAD_.ADType = "1"; //广告类型,图片或flash cmsAD_.ADName = "权责清单"; //广告名称 cmsAD_.ADContent = "{'Images':[{'imgADLinkUrl':'http://61.168.62.209:8091/#/','imgADAlt':'','ImgPath':'http://fgw.xinxiang.gov.cn/uploads/admin_1/20250304/be5fc2b373ef7ac529c6bac23582cc03.jpg'}],'imgADLinkTarget':'New','Count':'1','showAlt':'Y'}"; cmsAD_.URL = "http://fgw.xinxiang.gov.cn/poster/ad/1"; //动态链接地址,用来统计展示次数 cmsAD_.SiteID = 1; //站点ID cmsAD_.Width = 595; //宽度 cmsAD_.Height = 80; //高度 cmsAD_.UploadFilePath = ''; cmsAD_.ShowAD(); var isIE=!!window.ActiveXObject; if (isIE){ if (document.readyState=="complete"){ cmsAD_.Stat(); } else { document.onreadystatechange=function(){ if(document.readyState=="complete") cmsAD_.Stat(); } } } else { cmsAD_.Stat(); }