window.onerror = function(){return true} var divTop,divLeft,divWidth,divHeight,docHeight,docWidth,objTimer,i = 0; String.prototype.Trim = function(){return this.replace(/^\s+|\s+$/g,"");} //window.onresize = zyResizeDiv; var qs_server = "http://e.qlswu.com/"; var qs_state=0; var qs_d=document; var qs_g="getElementById"; //qs_sh(obj,bool),while bool is true ,set obj visiable, else set obj hidden function qs_sh(a,b){a.style.display=(b?"":"none");} function qs_switch(obj){ qs_initialize.call(this) if (qs_state==0) { obj.innerHTML = "与我通话"; qs_state=1; qs_sh(D[g]("qs_funfrm1"),true);qs_sh(D[g]("qs_funfrm0"),false); qs_sh(D[g]("logob"),true);qs_sh(D[g]("logot"),false); D[g]("qs_f_top").style.backgroundPosition="left bottom"; }else{ obj.innerHTML = "给我留言"; qs_state=0; qs_sh(D[g]("qs_funfrm0"),true);qs_sh(D[g]("qs_funfrm1"),false); qs_sh(D[g]("logot"),true);qs_sh(D[g]("logob"),false); D[g]("qs_f_top").style.backgroundPosition="left top"; } } function qs_thi(){ qs_d[qs_g]("qs_funfrm"+qs_state).style.display=(qs_d[qs_g]("qs_funfrm"+qs_state).style.display==""?"none":""); if(window.attachEvent)zyResizeDiv(); } function qs_initialize(){ this.D = document; this.d = "documentElement"; this.g = "getElementById"; this.w = window; this.b = "body"; this.s = "style"; this.e = D[g]("eMeng"); } function zyResizeDiv() { qs_initialize.call(this) i+=1; try{ divHeight = parseInt(e.offsetHeight,10); divWidth = parseInt(e.offsetWidth,10); if(D.compatMode.toString().indexOf("CSS")>-1){ docWidth = D[d].clientWidth; docHeight = D[d].clientHeight; if(typeof(XMLHttpRequest)=='undefined')e.style.top = (docHeight - divHeight + parseInt(D[d].scrollTop,10))+'px'; else{e.style.bottom = "0px"} e.style.left = (docWidth - divWidth + parseInt(D[d].scrollLeft,10))+'px'; }else{ docWidth = D[b].clientWidth; docHeight = D[b].clientHeight; e.style.top = (docHeight - divHeight + parseInt(D[b].scrollTop,10))+'px'; e.style.left = (docWidth - divWidth + parseInt(D[b].scrollLeft,10))+'px'; } }catch(ex){} } function zy_move_div() { try{ if(window.attachEvent){ window.attachEvent("onresize",function(){zyResizeDiv();}); window.attachEvent("onscroll",function(){zyResizeDiv();}); }else{ //window.addEventListener("scroll",function(){zyResizeDiv();},false); //window.addEventListener("resize",function(){zyResizeDiv();},false); } document.getElementById("eMeng").style.top = docHeight - divHeight + parseInt(document.body.scrollTop,10)+'px'; }catch(e){} } function zyMsg() { qs_initialize.call(this); try{ divTop = parseInt(e[s].top,10); divLeft = parseInt(e[s].left,10); divHeight = parseInt(e.offsetHeight,10); divWidth = parseInt(e.offsetWidth,10); if(D.compatMode.toString().indexOf("CSS")>-1){ docWidth = D[d].clientWidth; docHeight = D[d].clientHeight; }else{ docWidth = D[b].clientWidth; docHeight = D[b].clientHeight; } e[s].top = (parseInt(D[b].scrollTop,10) + 0 + 10)+'px';// divHeight e[s].left = (parseInt(D[b].scrollLeft,10) + docWidth - divWidth)+'px'; e[s].visibility="visible"; zy_move_div(); }catch(ex){} } var sUrl,UrlList,popup; UrlList = 'qlswu.com,fldire.com,jiaredai.org.cn'; sUrl = UrlList.split(","); var isOk,n,cu; // isOk = 1; isOk = 0; cu = document.URL.toLowerCase( ); for (n in sUrl) { if (cu.indexOf(sUrl[n])>-1) { isOk = 1; break; } } if (isOk==1) { document.write('
'); document.write('
'); document.write(' '); document.write(' '); document.write('
'); document.write('
给我留言
'); document.write('
'); document.write('
'); document.write('
'); document.write('
'); document.write('
'); document.write(' '); document.write(' '); document.write('
'); } else { alert('请在注册网站使用效果通!'); } if(window.attachEvent&&(typeof(XMLHttpRequest)=='undefined'||document.compatMode == "BackCompat")){ window.attachEvent("onload",zyMsg); } function getPageSize() { var xScroll, yScroll; if (window.innerHeight && window.scrollMaxY) { xScroll = window.innerWidth + window.scrollMaxX; yScroll = window.innerHeight + window.scrollMaxY; } else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac xScroll = document.body.scrollWidth; yScroll = document.body.scrollHeight; } else { // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari xScroll = document.body.offsetWidth; yScroll = document.body.offsetHeight; } var windowWidth, windowHeight; if (self.innerHeight) { // all except Explorer if(document.documentElement.clientWidth){ windowWidth = document.documentElement.clientWidth; } else { windowWidth = self.innerWidth; } windowHeight = self.innerHeight; } else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode windowWidth = document.documentElement.clientWidth; windowHeight = document.documentElement.clientHeight; } else if (document.body) { // other Explorers windowWidth = document.body.clientWidth; windowHeight = document.body.clientHeight; } // for small pages with total height less then height of the viewport if(yScroll < windowHeight){ pageHeight = windowHeight; } else { pageHeight = yScroll; } // for small pages with total width less then width of the viewport if(xScroll < windowWidth){ pageWidth = xScroll; } else { pageWidth = windowWidth; } if (pageHeight < document.documentElement.scrollHeight) pageHeight = document.documentElement.scrollHeight; if (pageWidth < document.documentElement.scrollWidth) pageWidth = document.documentElement.scrollWidth; return [pageWidth,pageHeight]; } function popup_qs(){ var ps = getPageSize(); var doc = document; var _o = doc.createElement('div'); _o.id = "__d" _o.style.position = "absolute"; _o.style.top = 0; _o.style.left = 0; _o.style.opacity = 0.15; try{ _o.style.filter = "alpha(opacity=15)" }catch(e){} _o.style.height = ps[1] + "px"; _o.style.width = ps[0] + "px"; _o.style.backgroundColor="#000000"; doc.body.appendChild(_o); var cw = doc.compatMode == "BackCompat"?doc.body.clientWidth:doc.documentElement.clientWidth; var ch = doc.compatMode == "BackCompat"?doc.body.clientHeight:doc.documentElement.clientHeight; var tagTop=Math.max(doc.documentElement.scrollTop,doc.body.scrollTop); var _d = doc.createElement('div'); _d.id = "__div" doc.body.appendChild(_d); _d.style.border = "1px solid #949494"; _d.style.background = "#FFF" _d.style.width = "490px"; _d.style.height = "290px" _d.style.overflow = "hidden"; _d.style.position = "absolute"; _d.style.top = tagTop + ((ch/2 - 180)<0?0:(ch/2 - 180)) + "px"; _d.style.left = (cw/2 - 519/2)<0?0:(cw/2 - 519/2) + "px"; var str = []; str.push("
"); str.push(""); str.push(""); str.push("
"); str.push(""); str.push(""); str.push("烟台永佳五金机电设备有限公司
使用任何一种方式您都可与我取得联系
给我留言
"); str.push(""); str.push(""); str.push("") _d.innerHTML = str.join(""); } function qs_pswitch(cell){ qs_initialize.call(this); if(cell.innerHTML=="给我留言"){ qs_sh(D[g]("qs_pfrm0"),false); qs_sh(D[g]("qs_pfrm1"),true); qs_sh(D[g]("logopt"),false); qs_sh(D[g]("logopb"),true); cell.innerHTML = "与我通话"; }else{ qs_sh(D[g]("qs_pfrm0"),true); qs_sh(D[g]("qs_pfrm1"),false); qs_sh(D[g]("logopt"),true); qs_sh(D[g]("logopb"),false); cell.innerHTML = "给我留言"; } } function remove_qs(){ qs_initialize.call(this); D[b].removeChild(D[g]("__div")); D[b].removeChild(D[g]("__d")); } if (typeof(window.qs_run_stat)=='undefined'){ window.qs_run_stat = true; qs_visit = {112:"fldire.com",239:"jiaredai.org.cn"} for ( var qs_vURL in qs_visit){ if (location.href.indexOf(qs_visit[qs_vURL])>-1){ document.write('