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 = "n"; this.uploadfilepath = ""; this.step = 1; this.delay= 20; this.windowheight = 0; this.windowwidth = 0; this.yon = 0; this.xon = 0; this.pause = true; this.interval = null; this.url = ""; this.siteid = 0; this.showad = showadcontent; this.start = dostart; this.stat = statad; } function statad() { var new_element = document.createelement("script"); new_element.type = "text/javascript"; new_element.src="http://www.acegjc.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 += "
关闭
"; str += "
"; document.write(str); } function changepos(float) { float.windowwidth = document.compatmode == "backcompat" ? document.body.clientwidth : document.documentelement.clientwidth; float.windowheight = document.compatmode == "backcompat" ? document.body.clientheight : document.documentelement.clientheight; document.getelementbyid("pcmsad_"+float.posid).style.left = (float.paddingleft + (math.max(document.documentelement.scrollleft, document.body.scrollleft)))+"px"; document.getelementbyid("pcmsad_"+float.posid).style.top = (float.paddingtop + (math.max(document.documentelement.scrolltop, document.body.scrolltop)))+"px"; if (float.yon){ float.paddingtop = float.paddingtop + float.step; }else{ float.paddingtop = float.paddingtop - float.step; } if (float.paddingtop < 0){ float.yon = 1; float.paddingtop = 0; } if (float.paddingtop >= (float.windowheight - float.height)){ float.yon = 0;float.paddingtop = (float.windowheight - float.height); } if (float.xon){ float.paddingleft = float.paddingleft + float.step; }else{ float.paddingleft = float.paddingleft - float.step; } if (float.paddingleft < 0){ float.xon = 1; float.paddingleft = 0; } if (float.paddingleft >= (float.windowwidth - float.width)){ float.xon = 0; float.paddingleft = (float.windowwidth - float.width); } } function dostart(float){ return function(){ changepos(float); } } function cmsad_11_pause_resume(){if(cmsad_11.pause){clearinterval(cmsad_11.interval);cmsad_11.pause = false;}else {cmsad_11.interval = setinterval(cmsad_11.start(cmsad_11),cmsad_11.delay);cmsad_11.pause = true;}} var cmsad_11 = new pcmsad('cmsad_11'); cmsad_11.posid = 11; cmsad_11.adid = 11; cmsad_11.adtype = "images"; cmsad_11.adname = "皖建云商"; cmsad_11.adcontent = "{'images':[{'imgadlinkurl':'http%3a%2f%2fwww.wjys365.com','imgadalt':'','imgpath':'http://www.acegjc.com/uploadfile/2023/0703/20230703111445474.jpg'}],'imgadlinktarget':'new','count':'1','showalt':'y'}"; cmsad_11.url = "http://www.acegjc.com/index.php?m=poster&c=index"; cmsad_11.siteid = 1; cmsad_11.paddingleft = 0; cmsad_11.paddingtop = 0; cmsad_11.width = 500; cmsad_11.height = 250; cmsad_11.uploadfilepath = ""; cmsad_11.showad(); var isie=!!window.activexobject; if (isie){ if (document.readystate=="complete"){ cmsad_11.stat(); } else { document.onreadystatechange=function(){ if(document.readystate=="complete") cmsad_11.stat(); } } } else { cmsad_11.stat(); } document.getelementbyid('pcmsad_11').visibility = 'visible'; cmsad_11.interval = setinterval(cmsad_11.start(cmsad_11),cmsad_11.delay);