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 = "https://www.pvcpu.com/index/show/poster?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 = " width='"+this.Width+"' height='"+this.Height+"' "; } str += sizeStr; str += " style='border:0px;'/>"; } str += "
"; document.write(str); } var cmsAD_5 = new PCMSAD('cmsAD_5'); cmsAD_5.PosID = 5; cmsAD_5.ADID = 5; cmsAD_5.ADType = "images"; cmsAD_5.ADName = "顶部广告"; cmsAD_5.ADContent = "{'ADImage':[ {'imgID':'5','imgADLinkUrl':'','imgADAlt':'顶部广告','ImgPath':'https://www.pvcpu.com/uploadfile/2011/0325/20110325085400722.jpg','imgADLinkTarget':'New','showAlt':'Y'} ]}"; cmsAD_5.URL = "https://www.pvcpu.com//index/poster_click/poster"; cmsAD_5.SiteID = 1; cmsAD_5.Width = 410; cmsAD_5.Height = 60; cmsAD_5.UploadFilePath = ""; cmsAD_5.ShowAD();