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.alexue.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_20 = new PCMSAD('cmsAD_20'); cmsAD_20.PosID = 20; cmsAD_20.ADID = 20; cmsAD_20.ADType = "images"; cmsAD_20.ADName = "乐学正文页顶通广告"; cmsAD_20.ADContent = "{'Images':[{'imgADLinkUrl':'http%3A%2F%2Fwww.alexue.com%2Fspecial%2F19%2F','imgADAlt':'青岛教育的五年','ImgPath':'http://www.alexue.com/uploadfile/2017/1018/20171018065456415.jpg'}],'imgADLinkTarget':'New','Count':'1','showAlt':'Y'}"; cmsAD_20.URL = "http://www.alexue.com/index.php?m=poster&c=index"; cmsAD_20.SiteID = 1; cmsAD_20.Width = 750; cmsAD_20.Height = 100; cmsAD_20.UploadFilePath = ''; cmsAD_20.ShowAD(); var isIE=!!window.ActiveXObject; if (isIE){ if (document.readyState=="complete"){ cmsAD_20.Stat(); } else { document.onreadystatechange=function(){ if(document.readyState=="complete") cmsAD_20.Stat(); } } } else { cmsAD_20.Stat(); }