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.sijiaren.com.cn/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_5 = new PCMSAD('cmsAD_5'); cmsAD_5.PosID = 5; cmsAD_5.ADID = 5; cmsAD_5.ADType = "images"; cmsAD_5.ADName = "内容侧栏2"; cmsAD_5.ADContent = "{'Images':[{'imgADLinkUrl':'http%3A%2F%2Fwww.shpxs.com%2F','imgADAlt':'司玲玲-山东保君律师事务所副主任律师','ImgPath':'http://www.sishi.org.cn/uploadfile/2019/0319/20190319051340743.png'}],'imgADLinkTarget':'New','Count':'1','showAlt':'Y'}"; cmsAD_5.URL = "http://www.sijiaren.com.cn/index.php?m=poster&c=index"; cmsAD_5.SiteID = 1; cmsAD_5.Width = 270; cmsAD_5.Height = 250; cmsAD_5.UploadFilePath = ''; cmsAD_5.ShowAD(); var isIE=!!window.ActiveXObject; if (isIE){ if (document.readyState=="complete"){ cmsAD_5.Stat(); } else { document.onreadystatechange=function(){ if(document.readyState=="complete") cmsAD_5.Stat(); } } } else { cmsAD_5.Stat(); }