function PCMSAD(PID) { this.ID = PID; this.PosID = 0; this.ADID = 0; this.ADType = ""; this.ADName = ""; this.ADContent = ""; this.PaddingLeft = 0; this.PaddingTop = 2; 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://fjfa.org.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_13 = new PCMSAD('cmsAD_13'); cmsAD_13.PosID = 11; cmsAD_13.ADID = 13; cmsAD_13.ADType = "images"; cmsAD_13.ADName = "中国足协"; cmsAD_13.ADContent = "{'ADImage':[ {'imgID':'13','imgADLinkUrl':'http%3A%2F%2Fwww.fa.org.cn','imgADAlt':'中国足球协会','ImgPath':'http://fjfa.org.cn/uploadfile/2015/0117/20150117045150879.png','imgADLinkTarget':'New','showAlt':'Y'} , {'imgID':'14','imgADLinkUrl':'http%3A%2F%2Ftyj.fujian.gov.cn','imgADAlt':'福建省体育局','ImgPath':'http://fjfa.org.cn/uploadfile/2015/0117/20150117044753791.png','imgADLinkTarget':'New','showAlt':'Y'} , {'imgID':'16','imgADLinkUrl':'http%3A%2F%2Fwww.kelmechina.com','imgADAlt':'卡尔美','ImgPath':'http://www.fjfa.org.cn/xc/kelme80.jpg','imgADLinkTarget':'New','showAlt':'Y'} ]}"; cmsAD_13.URL = "http://fjfa.org.cn/index.php?m=poster&c=index&a=poster_click"; cmsAD_13.SiteID = 1; cmsAD_13.Width = 250; cmsAD_13.Height = 80; cmsAD_13.UploadFilePath = ""; cmsAD_13.ShowAD();