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.Width = 0; this.Height = 0; this.IsHitCount = "Y"; this.Scroll = "N"; this.Align = "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="/index.php?m=poster&c=index&a=show&siteid="+this.SiteID+"&id="+this.ADID+"&spaceid="+this.PosID; document.body.appendChild(new_element); } var delta=0.08 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 += "
关闭
"; str += "
"; document.write(str); setInterval("playFixureAD(\""+this.Align+"\",\"PCMSAD_"+this.PosID+"\")",10); } function playFixureAD(Align,ADID){ var followObj = document.getElementById(ADID); var followObj_x = 0; var followObj_y = 0; var Cwidth = document.compatMode == "BackCompat" ? document.body.clientWidth : document.documentElement.clientWidth; var CHeight = document.compatMode == "BackCompat" ? document.body.clientHeight : document.documentElement.clientHeight; if(Align=="Y"){ followObj_x = parseInt((Cwidth/2)-(followObj.clientWidth/2)); followObj_y = parseInt((CHeight/2)-(followObj.clientHeight/2)); if(followObj.offsetLeft!=(document.documentElement.scrollLeft+followObj_x)) { var dx=(document.documentElement.scrollLeft+followObj_x-followObj.offsetLeft)*delta; dx=(dx>0?1:-1)*Math.ceil(Math.abs(dx)); followObj.style.left=(followObj.offsetLeft+dx)+"px"; } if(followObj.offsetTop!=(document.documentElement.scrollTop+followObj_y)) { var dy=(document.documentElement.scrollTop+followObj_y-followObj.offsetTop)*delta; dy=(dy>0?1:-1)*Math.ceil(Math.abs(dy)); followObj.style.top=(followObj.offsetTop+dy)+"px"; } } } var cmsAD_5 = new PCMSAD('cmsAD_5'); cmsAD_5.PosID = 5; cmsAD_5.ADID = 18; cmsAD_5.ADType = "images"; cmsAD_5.ADName = "财税答题"; cmsAD_5.ADContent = "{'Images':[{'imgADLinkUrl':'+http%3A%2F%2F39.105.46.192%2F','imgADAlt':'','ImgPath':'/uploadfile/2018/0731/20180731052836946.png'}],'imgADLinkTarget':'New','Count':'1','showAlt':'Y'}"; cmsAD_5.URL = "/index.php?m=poster&c=index"; cmsAD_5.SiteID = 1; cmsAD_5.PaddingLeft = 0; cmsAD_5.PaddingTop = 0; cmsAD_5.Scroll = 'N'; cmsAD_5.Align = 'N'; cmsAD_5.Width = 454; cmsAD_5.Height = 320; 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(); }