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://myadmin.99ys.com/index.php?m=poster&c=index&a=show&siteid="+this.SiteID+"&spaceid="+this.ADID+"&id="+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_55 = new PCMSAD('cmsAD_55'); cmsAD_55.PosID = 55; cmsAD_55.ADID = 251; cmsAD_55.ADType = "images"; cmsAD_55.ADName = "昊美术馆"; cmsAD_55.ADContent = "{'Images':[{'imgADLinkUrl':'http%3A%2F%2Fexhibit.99ys.com%2Fqbzl%2Fid-26163','imgADAlt':'宣言:朱利安·罗斯菲德','ImgPath':'http://image.99ys.com/2017/0922/20170922110143777.png'}],'imgADLinkTarget':'New','Count':'1','showAlt':'Y'}"; cmsAD_55.URL = "http://news.99ys.com/index.php?m=poster&c=index"; cmsAD_55.SiteID = 1; cmsAD_55.Width = 1000; cmsAD_55.Height = 90; cmsAD_55.UploadFilePath = ''; cmsAD_55.ShowAD(); var isIE=!!window.ActiveXObject; if (isIE){ if (document.readyState=="complete"){ cmsAD_55.Stat(); } else { document.onreadystatechange=function(){ if(document.readyState=="complete") cmsAD_55.Stat(); } } } else { cmsAD_55.Stat(); }