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.peoplerail.com/rail/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 str = ""; var AD = eval('('+content+')'); var count = 0; if(AD.ADText.length){ count = AD.ADText.length; } for(var i=0;i"+AD.ADText[i].textContent+""; } //str += "
"; str += ""; document.write(str); } var cmsAD_156 = new PCMSAD('cmsAD_156'); cmsAD_156.PosID = 138; cmsAD_156.ADID = 156; cmsAD_156.ADType = "text"; cmsAD_156.ADName = "新闻头部文字广8"; cmsAD_156.ADContent = "{'ADText':[ {'textID':'156','textContent':'广告文字链招商中','textLinkUrl':'%2Frail%2Flist-242-1.html'} ]}"; cmsAD_156.URL = "http://www.peoplerail.com/rail/index.php?m=poster&c=index"; cmsAD_156.SiteID = 1; cmsAD_156.Width = 0; cmsAD_156.Height = 0; cmsAD_156.UploadFilePath = ""; cmsAD_156.ShowAD();