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.xbzyw.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_1 = new PCMSAD('cmsAD_1'); cmsAD_1.PosID = 1; cmsAD_1.ADID = 1; cmsAD_1.ADType = "flash"; cmsAD_1.ADName = "banner"; cmsAD_1.ADContent = "{'Images':[{'imgADLinkUrl':'','imgADAlt':'','ImgPath':'http://www.xbzyw.com/uploadfile/2013/0502/20130502040205486.swf'}],'imgADLinkTarget':'New','Count':'1','showAlt':'Y'}"; cmsAD_1.URL = "http://www.xbzyw.com/index.php?m=poster&c=index"; cmsAD_1.SiteID = 1; cmsAD_1.Width = 560; cmsAD_1.Height = 75; cmsAD_1.UploadFilePath = ''; cmsAD_1.ShowAD(); var isIE=!!window.ActiveXObject; if (isIE){ if (document.readyState=="complete"){ cmsAD_1.Stat(); } else { document.onreadystatechange=function(){ if(document.readyState=="complete") cmsAD_1.Stat(); } } } else { cmsAD_1.Stat(); }