注册 登录
琵琶行论坛 返回首页

jiajia0830的个人空间 https://www.ppxclub.com/?305157 [收藏] [复制] [分享] [RSS]

日志

期待网站人气越来越旺

已有 198 次阅读2015-6-8 11:12 | function, 网站

期待网站人气越来越旺
var com_nenglp_excommon_debug=!1,com_nenglp_excommon={debug:function(a){com_nenglp_excommon_debug&&(typeof console.debug!="undefined"?console.debug(a):typeof console.log!="undefined"&&console.log(a))},inited:!1,zindex:2147483620,init:function(a){var b=this,c=document.getElementById(a.script_id).getAttribute("extoken");document.getElementById(a.script_id).setAttribute("extoken","");b.debug("com_nenglp_excommon.init(extoken="+c+") is called in "+location.href);b.commonspec=a;b.page2content=document.getElementById(a.div_page2content); b.content2page=document.getElementById(a.div_content2page);b.container=document.getElementById(a.div_container);b.requests={};b.contextmenu=null;b.eventHandler.bind(b.content2page,b.content2page.id,function(){var a=b.content2page.getAttribute(b.commonspec.attr_content2page),e=b.content2page.getAttribute(b.commonspec.attr_content2pageb);b.content2page.setAttribute(b.commonspec.attr_content2page,"");b.content2page.setAttribute(b.commonspec.attr_content2pageb,"");if(a=="contextMenuClicked"){if(window.top== window.self){var a=JSON.parse(e),f={};if(typeof a.frameUrl!="undefined")f.text=typeof a.selectionText!="undefined"?a.selectionText:"",f.imageSrc=typeof a.mediaType!="undefined"&&typeof a.srcUrl!="undefined"?a.srcUrl:"",b.debug("extoken = "+c+", info = "+e);else if(b.contextmenu)f=b.getLaunchInfo(b.contextmenu.m,b.contextmenu.s),b.debug("extoken = "+c+", contextmenu = {m: "+JSON.stringify(b.contextmenu.m)+", s: "+JSON.stringify(b.contextmenu.s)+"}, info = "+e+", launchInfo = "+JSON.stringify(f));else return; b.launchApp(c,"exlaunch",f.text,f.imageSrc);b.hideMenu();b.contextmenu=null}}else if(f=b.requests[a],typeof f!="undefined"){delete b.requests[a];try{f(e)}catch(g){}}});if(!b.isBackground())if(b.isTopWindow()){if(location.href.indexOf("http://ex.nenglp.com/xalimama/home.htm")==0)if(a=b.parseQueryString(),a.inst=="true")location.href="home_inst.htm?inst=true";else if(a.conf=="true")location.href="home_conf.htm?conf=true";b.initMenu(c);b.addResetStyle(b.commonspec.div_container);b.launchApps(c,null)}else b.getFrameArgs(function(a){null== a?b.launchApps(c,null):(b.inited=!0,b.launchApps(c,a.appname))})},launchApps:function(a,b){var c=this;c.getAppSpecs(a,function(d){d.sort(function(a,b){return a.name-b.name});c.debug("all app specs = "+JSON.stringify(d));for(var e=0;e<d.length;e++)if(window.self==window.top){if(typeof d[e].pages!="undefined")for(var f=d[e].pages,g=0;g<f.length;g++)location.href.match(RegExp(f[g]))&&c.invokeApp(a,d[e],"autoPage","","")}else if(!(null!=b&&d[e].name!=b)&&typeof d[e].frames!="undefined"){f=d[e].frames; for(g=0;g<f.length;g++)location.href.match(RegExp(f[g]))&&c.invokeApp(a,d[e],"autoFrame","","")}c.inited=!0})},addResetStyle:function(a){var b=document.createElement("style");b.appendChild(document.createTextNode("#"+a+" img, #"+a+" iframe, #"+a+" div, #"+a+" a, #"+a+' span {animation : none;\t animation-delay : 0;\t animation-direction : normal;\t animation-duration : 0;\t animation-fill-mode : none; animation-iteration-count : 1; animation-name : none; animation-play-state : running; animation-timing-function : ease; backface-visibility : visible; background : 0; background-attachment : scroll; background-clip : border-box; background-color : transparent; background-image : none; background-origin : padding-box; background-position : 0 0; background-position-x : 0; background-position-y : 0; background-repeat : repeat; background-size : auto auto; border : 0; border-style : none; border-width : medium; border-color : inherit; border-bottom : 0; border-bottom-color : inherit; border-bottom-left-radius : 0; border-bottom-right-radius : 0; border-bottom-style : none; border-bottom-width : medium; border-collapse : separate; border-image : none; border-left : 0; border-left-color : inherit; border-left-style : none; border-left-width : medium; border-radius : 0; border-right : 0; border-right-color : inherit; border-right-style : none; border-right-width : medium; border-spacing : 0; border-top : 0; border-top-color : inherit; border-top-left-radius : 0; border-top-right-radius : 0; border-top-style : none; border-top-width : medium; bottom : auto; box-shadow : none; box-sizing : content-box; caption-side : top; clear : none; clip : auto; color : inherit; columns : auto; column-count : auto; column-fill : balance; column-gap : normal; column-rule : medium none currentColor; column-rule-color : currentColor; column-rule-style : none; column-rule-width : none; column-span : 1; column-width : auto; content : normal; counter-increment : none; counter-reset : none; cursor : auto; direction : ltr; empty-cells : show; float : none; font : normal; font-family : inherit; font-size : medium; font-style : normal; font-variant : normal; font-weight : normal; height : auto; hyphens : none; left : auto; letter-spacing : normal; line-height : normal; list-style : none; list-style-image : none; list-style-position : outside; list-style-type : disc; margin : 0; margin-bottom : 0; margin-left : 0; margin-right : 0; margin-top : 0; max-height : none; max-width : none; min-height : 0; min-width : 0; opacity : 1; orphans : 0; outline : 0; outline-color : invert; outline-style : none; outline-width : medium; overflow : visible; overflow-x : visible; overflow-y : visible; padding : 0; padding-bottom : 0; padding-left : 0; padding-right : 0; padding-top : 0; page-break-after : auto; page-break-before : auto; page-break-inside : auto; perspective : none; perspective-origin : 50% 50%; position : static; quotes : "\u0081C" "\u0081D" "\u00818" "\u00819"; right : auto; tab-size : 8; table-layout : auto; text-align : inherit; text-align-last : auto; text-decoration : none; text-decoration-color : inherit; text-decoration-line : none; text-decoration-style : solid; text-indent : 0; text-shadow : none; text-transform : none; top : auto; transform : none; transform-style : flat; transition : none; transition-delay : 0s; transition-duration : 0s; transition-property : none; transition-timing-function : ease; unicode-bidi : normal; vertical-align : baseline; visibility : visible; white-space : normal; widows : 0; width : auto; word-spacing : normal; z-index : auto; -webkit-background-clip: border-box; -webkit-background-origin: padding-box;\t-webkit-background-size: auto;\t-webkit-border-horizontal-spacing: 0px;\t-webkit-border-image: none;\t-webkit-border-vertical-spacing: 0px;\t-webkit-box-shadow: none;\t-webkit-transition-delay: 0s;\t-webkit-transition-duration: 0s;\t-webkit-transition-property: none;\t-webkit-transition-timing-function: ease;\t}')); document.head?document.head.appendChild(b):document.body.appendChild(b)},getCookie:function(a){var b,c,d,e=document.cookie.split(";");for(b=0;b0){b+=3;var c=a.indexOf("/",b);return c0?setTimeout(function(){b.sendMessageToContent(a)},1E3):(b.page2content.setAttribute(b.commonspec.attr_page2content,a),b.eventHandler.dispatch(b.page2content,b.page2content.id,a))},buildClientRequest:function(a,b,c,d,e){typeof d=="undefined"&&(d={});typeof c=="undefined"&&(c=!1);typeof b=="undefined"&& (b=!1);if(a.match("^http://api.nenglp.com")||a.match("^http://ex.nenglp.com"))d["X-by"]=location.href,d["X-ref"]=document.referrer,d["X-self"]=window.self==window.top?"top":"iframe",d["X-app"]="excommon";c={url:a,caching:b,noExpiration:c,hdr:d,timestamp:(new Date).getTime()};if(typeof e!="undefined"){if(c.postData=e,b)c.cacheid=a+"_"+e}else if(b)c.cacheid=a;return c=this.stringify(c)},sendRequestNow:function(a,b,c,d,e,f,g){a+=this.buildClientRequest(b,d,e,f,g);this.sendMessageToContent(a);this.requests[a]= c},lastSlowRequestTime:null,slowQueueRequest:function(a,b,c,d,e,f,g){var h=this,i=a+this.buildClientRequest(b,d,e,f,g);if(this.lastSlowRequestTime==null)this.lastSlowRequestTime=new Date;a=this.lastSlowRequestTime.getTime();b=new Date;b=b.getTime();a+1E3<b?(this.lastSlowRequestTime.setTime(b),this.sendMessageToContent(i),this.requests[i]=c):(this.lastSlowRequestTime.setTime(a+1E3),setTimeout(function(){h.sendMessageToContent(i);h.requests[i]=c},a+1E3-b))},lastQuickRequestTime:null,quickQueueRequest:function(a, b,c,d,e,f,g){var h=this,i=a+this.buildClientRequest(b,d,e,f,g);this.lastQuickRequestTime==null?(this.lastQuickRequestTime=new Date,this.sendMessageToContent(i),this.requests[i]=c):(a=this.lastQuickRequestTime.getTime(),b=new Date,b=b.getTime(),a+100<b?(this.lastQuickRequestTime.setTime(b),this.sendMessageToContent(i),this.requests[i]=c):(this.lastQuickRequestTime.setTime(a+100),setTimeout(function(){h.sendMessageToContent(i);h.requests[i]=c},a+100-b)))},parseInnerText:function(a,b,c){if(null==a)return null; var d=0;typeof b=="string"&&(b=[b]);for(var e=0;e<b.length;e++){d=a.indexOf(b[e],d);if(d<0)return null;d+=b[e].length}if(typeof c=="undefined")return a.substring(d);b=-1;typeof c=="string"&&(c=[c]);for(e=0;e=0)break}else{b=a.length;break}return b<0?null:a.substring(d,b)},getChildByClass:function(a,b){if(typeof document.evaluate=="undefined")return null;else{var c=document.evaluate('descendant-or-self::*[@class="'+b+'"]',a,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);return c.snapshotLength!=1?null:c.snapshotItem(0)}},getChildrenByTag:function(a,b){if(typeof document.evaluate=="undefined")return null;else{for(var c=document.evaluate(".//"+b.toUpperCase(),a,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null),d=[],e=0;e<c.snapshotLength;e++)d.push(c.snapshotItem(e));return d}},getChildrenByClass:function(a,b){if(typeof b=="undefined")b=a,a=document.body;if(typeof document.evaluate=="undefined")return null;else{for(var c=document.evaluate('descendant-or-self::*[@class="'+ b+'"]',a,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null),d=[],e=0;e<c.snapshotLength;e++)d.push(c.snapshotItem(e));return d}},getChildByTag:function(a,b){var b=b.toUpperCase(),c;for(c in a.children){var d=a.children[c];if(typeof d.tagName!="undefined"&&d.tagName.toUpperCase()==b)return d}return null},parseInt:function(a){try{var b=parseInt(a);return isNaN(b)?null:b}catch(c){return null}},parseInnerTextEx:function(a,b,c,d){typeof c=="string"&&(c=[c]);for(var e=0;e<c.length;e++){b=a.indexOf(c[e], b);if(b<0)return null;b+=c[e].length}if(typeof d=="undefined")return a.substring(b);var c=-1,f;typeof d=="string"&&(d=[d]);for(e=0;e=0)break}else{c=a.length;break}return c<0?null:{text:a.substring(b,c),end:c+(f==null?0:f.length)}},parseHtmlList:function(a,b,c,d){try{for(var e=0,f=null,g,h;;){e=a.indexOf(b,e);if(e0?(g=a.substring(e, i),h=0,e=i+d.length):(g=a,h=e,e=a.length)}else g=a,h=e;for(var l=c,j=[],k=0;k<l.length;k++)if(typeof l[k]!="undefined"){var n=l[k][0],m=this.parseInnerTextEx(g,h,l[k][1],l[k][2]);if(null==m)if(l[k].length==4){for(var p=l[k][3],q=[],o=0,o=0;o<k;o++)q.push(l[o]);for(var r=0;r<p.length;r++)q.push(p[r]);for(o++;o<l.length;o++)q.push(l[o]);l=q;k--;continue}else{j=null;break}j[n]=m.text;h=m.end}null!=j&&(null==f&&(f=[]),f.push(j))}return f}catch(s){return null}},formatPercentText:function(a){try{return parseInt(Math.ceil(a* 100,0))+"%"}catch(b){return"0%"}},formatPriceText:function(a){try{var b=parseInt(a/100);a%=100;b+=".";if(a>=10)return b+a;b+="0";return b+a}catch(c){return"0.00"}},isBackground:function(){if(document.location.href.indexOf("http://ex.nenglp.com/")>=0&&document.location.href.indexOf("/background.htm")>0)return!0},isTopWindow:function(){return window.top==window.self?!0:!1},findToken:function(a){try{var b=localStorage[a];if(typeof b!="undefined"){var c=parseInt(b),d=(new Date).getTime();return c<d?(localStorage.removeItem(a), !1):!0}else return!1}catch(e){return!1}},setToken:function(a,b,c){try{localStorage.setItem(a,((new Date).getTime()+c*1E3).toString())}catch(d){}},hidePanel:function(){var a=document.getElementById("com_nenglp_expanel");if(a)a.style.display="none"},initPanel:function(){var a=document.getElementById("com_nenglp_expanel");if(null!=a)return a;a=document.createElement("div");a.className="com_nenglp_cssreset";a.id="com_nenglp_expanel";a.style.cssText="display:none;position:fixed;background:#DDD;top:1px;right:5px;z-index:"+ this.zindex+";width:259px;overflow-x:hidden;overflow-y:scroll;font-size:14px;color:black;background:white;border:1px solid #AAA;padding:1px;border: 1px solid #444;-webkit-border-radius:5px;-webkit-box-shadow:5px 5px 5px #aaa;";a.innerHTML='
'; this.container.appendChild(a);return a},getAppIcon:function(a){return"http://ex.nenglp.com/"+a+"/appicon16.png"},getFrameArgs:function(a){var b=this;typeof b.frameArgs=="undefined"?(window.addEventListener("message",function(c){b.debug("origin = "+c.origin+", data length = "+c.data.length+", data = "+c.data.substr(0,100));try{if(typeof b.frameArgs=="undefined")b.frameArgs=JSON.parse(c.data),a(b.frameArgs)}catch(d){b.debug("excommon.getFrameArgs exception: "+d)}}),setTimeout(function(){if(typeof b.frameArgs== "undefined")b.frameArgs=null,a(null)},2E3)):a(b.frameArgs)},frameCount:0,addAppFrame:function(a,b,c,d,e,f,g,h,i,l,j,k){var a=document.getElementById(a),n=document.createElement("iframe");n.style.cssText="width:"+f+"px;height:20px;border:0px;";a.appendChild(n);n.contentDocument.body.style.cssText="margin:0px;padding:0px;overflow:hidden;";n.contentDocument.body.innerHTML='";var m=document.createElement("iframe");if(e)m.src=e;m.sandbox="allow-forms allow-same-origin allow-scripts allow-popups";m.style.cssText="width:"+f+"px;height:"+g+"px;border:none;";a.appendChild(m);typeof k== "undefined"&&(k={});setTimeout(function(){m.contentWindow.postMessage(JSON.stringify({appname:b,args:k}),"*")},1E3);return m},addPanelFrame:function(a,b,c,d,e,f,g){var h=this.initPanel();com_nenglp_excommon.frameCount++;var i="com_nenglp_expanel"+com_nenglp_excommon.frameCount,l=document.createElement("div");l.id=i;l.style.cssText="border-right:1px solid white;height:"+(22+f)+"px;";h.firstChild.nextSibling?h.insertBefore(l,h.firstChild.nextSibling):h.appendChild(l);var j=document.createElement("div"); j.innerHTML=''+b+' '+c+"";j.style.cssText="background:#DDD;color:black;width:240px;text-align:left;font-size:14px;font-weight:normal;padding:1px;height:16px;border-top:1px solid #AAA;border-bottom:1px solid #AAA;overflow:hidden;"; l.appendChild(j);var k=document.createElement("iframe");if(e)k.src=e;k.sandbox="allow-forms allow-same-origin allow-scripts allow-popups";k.style.cssText="width:240px;height:"+f+"px;border:none;";k.id=i+"_iframe";l.appendChild(k);typeof g=="undefined"&&(g={});setTimeout(function(){k.contentWindow.postMessage(JSON.stringify({appname:b,args:g}),"*")},1E3);a=this.frameCount*(22+f)+22;a>document.documentElement.clientHeight-7-5?(a=document.documentElement.clientHeight-7-5,h.style.overflowY="scroll",h.style.width= "254px"):(h.style.overflowY="hidden",h.style.width="240px");h.style.height=a+"px";h.scrollTop="0px";h.style.display="block";return i},getPanelFrame:function(a){return document.getElementById(a+"_iframe")},setPanelFrameHref:function(a,b){document.getElementById(a+"_a").setAttribute("href",b)},openNewTab:function(a,b){this.sendRequestNow(a,"opennewtab://",function(){},!1,!1,{},{url:b})},menuCount:0,extensions:[],initMenu:function(a){var b=this;document.addEventListener?document.addEventListener("contextmenu", function(c){var d=b.getMousePosition(c),e=b.getScrollPosition(c),c=document.elementFromPoint(d.x,d.y);b.contextmenu={m:d,s:e,focus:c};setTimeout(function(){b.loadMenu(d,e,a)},10)},!1):document.attachEvent("oncontextmenu",function(){window.event.returnValue=!0;var c=b.getMousePosition(window.event),d=b.getScrollPosition(window.event),e=document.elementFromPoint(c.x,c.y);b.contextmenu={m:c,s:d,focus:e};setTimeout(function(){b.loadMenu(c,d,a)},10)})},S4:function(){return((1+Math.random())*65536|0).toString(16).substring(1)}, genguid:function(){return(this.S4()+this.S4()+"-"+this.S4()+"-4"+this.S4().substr(0,3)+"-"+this.S4()+"-"+this.S4()+this.S4()+this.S4()).toLowerCase()},launchApp:function(a,b,c,d,e){var f=this;f.sendRequestNow(a,"launchapp://",function(b){try{var h=JSON.parse(b);typeof e=="undefined"&&f.addLaunchHistory(h);f.invokeApp(a,h,"launch",c,d)}catch(i){f.debug("launchapp exception: "+i)}},!1,!1,{},{appname:b})},addLaunchHistory:function(a){if(a.name!="exlaunch"){var b=this.extractSiteDomain(location.href); if(b.length!=0){var c=localStorage.getItem("com_nenglp_launchhistory_"+b),c=null==c?[]:JSON.parse(c);c.unshift({name:a.name,caption:a.caption});for(var d=1;d<c.length;d++)if(a.name==c[d].name){c.splice(d,1);break}c.length>5&&c.splice(5,c.length-5);c=JSON.stringify(c);localStorage.setItem("com_nenglp_launchhistory_"+b,c)}}},getLaunchHistory:function(){var a=this.extractSiteDomain(location.href);if(a.length!=0)return a=localStorage.getItem("com_nenglp_launchhistory_"+a),null==a?[]:JSON.parse(a)},invokeApp:function(a, b,c,d,e){this.debug("invokeApp extoken = "+a+" appname = "+b.name+" for url = "+location.href+", text = "+d+", img = "+e);var f=b.script_id+"."+c+"("+JSON.stringify(a)+","+JSON.stringify(this.commonspec)+","+JSON.stringify(b)+","+JSON.stringify(d)+","+JSON.stringify(e)+");";if(document.getElementById("script_"+b.script_id))window.eval(f);else{var c=this.commonspec.exurl+b.name+"/"+b.name+".js",g=document.getElementById(this.commonspec.div_container);if(com_nenglp_excommon_debug==!0){if(null==document.getElementById("script_"+ b.script_id))a=document.createElement("script"),a.id="script_"+b.script_id,a.language="javascript",a.type="text/javascript",a.charset="utf-8",a.src=c,a.defer=!0,g.appendChild(a);setTimeout(function(){window.eval(f)},1E3)}else null==document.getElementById("script_"+b.script_id)?this.sendRequestNow(a,c,function(a){if(!(null==a||a.length==0||a.indexOf("var")!=0)){if(null==document.getElementById("script_"+b.script_id)){var c=document.createElement("script");c.id="script_"+b.script_id;c.language="javascript"; c.type="text/javascript";c.charset="utf-8";c.text=a;g.appendChild(c)}setTimeout(function(){typeof window[b.script_id]=="undefined"?window.eval(a+f):window.eval(f)},100)}},!0,!0,{}):setTimeout(function(){window.eval(f)},100)}},addMenuItem:function(a,b,c,d,e){var f=this;com_nenglp_excommon.menuCount++;var g="com_nenglp_exmenu"+com_nenglp_excommon.menuCount,h=document.createElement("a");h.id=g;g=c.caption;d.length>0?g+="\uff1a"+d:e.length>0&&(g+="\uff1a"+e);h.setAttribute("title",g);h.href="javascript:void(0);"; h.onclick=function(){var a=(new Date).getTime();com_nenglp_excommon.timeOfDisplay=a;var g=h.getAttribute("timestamp");h.setAttribute("timestamp",a.toString());g&&parseInt(g)+1500>a||(f.launchApp(b,c.name,d,e),f.hideMenu())};var i=document.createElement("img");i.src=f.getAppIcon(c.name);i.style.cssText="float:left;border: 1px solid #DDD;width:16px;height:16px;margin:0px;padding:0px;";i.onmousemove=function(){com_nenglp_excommon.timeOfDisplay=(new Date).getTime()};i.onmouseover=function(){i.style.border= "1px solid white"};i.onmouseout=function(){i.style.border="1px solid #DDD"};h.appendChild(i);a.appendChild(h)},addMenuConfig:function(a){this.menuCount++;var b=document.createElement("a");b.style.cssText="border:none;line-height:18px;font-size:12px;margin:0px;padding:0px;";b.href="http://ex.nenglp.com/exconfig.htm?referrer="+encodeURIComponent(location.href);b.setAttribute("target","exconfig");b.setAttribute("title","\u914d\u7f6e");var c=document.createElement("img");c.src="http://ex.nenglp.com/exconfig.png"; c.style.cssText="border: 1px solid #DDD;width:16px;height:16px;margin:0px;padding:0px;";c.onmousemove=function(){com_nenglp_excommon.timeOfDisplay=(new Date).getTime()};c.onmouseover=function(){c.style.border="1px solid white"};c.onmouseout=function(){c.style.border="1px solid #DDD"};b.appendChild(c);a.appendChild(b)},hideMenu:function(){document.getElementById("com_nenglp_exmenu").style.display="none"},getLaunchInfo:function(){var a=this.getSelectionText(),b=null;a.length==0&&(b=this.getSelectionImage()); var c="";b&&(c=b.getAttribute("src"));c=c&&c.length>0?this.rebaseImageSrc(c):"";return{text:a,imageSrc:c}},isMenuToolbarEnabled:function(){try{var a=localStorage.getItem("com_nenglp_siteconfig");if(null!=a&&!0==JSON.parse(a).toolbar)return!0}catch(b){}return!1},timeOfDisplay:0,loadMenu:function(a,b,c){if(!1!=this.isMenuToolbarEnabled()){var d=this,e=document.getElementById("com_nenglp_exmenu");if(null==e)e=document.createElement("div"),e.id="com_nenglp_exmenu",e.className="com_nenglp_cssreset",e.style.cssText= "display:none;position:absolute;z-index:"+(d.zindex-10)+";border:1px solid #AAA;padding:1px;background:#DDD;height:18px;line-height:18px;",d.container.appendChild(e);e.innerHTML="";d.menuCount=0;var f=d.getLaunchInfo(a,b);d.getAppSpecs(c,function(g){for(var h=0;h0)for(h=0;h<i.length;h++)for(var l=0;l<g.length;l++)if(i[h].name==g[l].name){g.splice(l, 1);break}g=i.concat(g);if(g.length!=0){for(h=0;h<g.length;h++)d.addMenuItem(e,c,g[h],f.text,f.imageSrc);e.style.left=a.x+b.x+"px";e.style.width=2+com_nenglp_excommon.menuCount*18+"px";e.style.top=a.y+b.y-24+"px";e.style.display="block";com_nenglp_excommon.timeOfDisplay=(new Date).getTime();setTimeout(function(){d.tryHideMenu()},3E3)}})}},tryHideMenu:function(){var a=this;com_nenglp_excommon.timeOfDisplay+3E30)return a;if(typeof this.contextmenu.focus=="undefined")return"";return this.contextmenu.focus.tagName.toUpperCase()!="A"?"":a=this.contextmenu.focus.innerText},getSelectionImage:function(){return typeof this.contextmenu.focus== "undefined"?null:this.contextmenu.focus.tagName.toUpperCase()=="IMG"?this.contextmenu.focus:this.contextmenu.focus.nextElementSibling&&this.contextmenu.focus.nextElementSibling.tagName.toUpperCase()=="IMG"?this.contextmenu.focus.nextElementSibling:null},getMousePosition:function(a){return{x:a.clientX,y:a.clientY}},getScrollPosition:function(){var a=0,b=0;if(typeof window.pageYOffset=="number")a=window.pageXOffset,b=window.pageYOffset;else if(document.documentElement&&(document.documentElement.scrollLeft|| document.documentElement.scrollTop))a=document.documentElement.scrollLeft,b=document.documentElement.scrollTop;else if(document.body&&(document.body.scrollLeft||document.body.scrollTop))a=document.body.scrollLeft,b=document.body.scrollTop;return{x:a,y:b}},hideChildrenByClass:function(a){if(a=this.getChildrenByClass(document.body,a))for(var b=0;b<a.length;b++)a[b].style.display="none"},hideForms:function(){for(var a=document.forms,b=0;b<a.length;b++)a[b].style.display="none"},clearChildrenStyleByTag:function(a){for(var a= document.getElementsByTagName(a.toUpperCase()),b=0;b<a.length;b++)a[b].style.cssText="none"},hideChildrenByTag:function(a){for(var a=document.getElementsByTagName(a.toUpperCase()),b=0;b<a.length;b++)a[b].style.display="none"},hideImagesBySrc:function(a){for(var b=document.images,c=0;c<b.length;c++)if(b[c].src==a)b[c].style.display="none"},hideElementById:function(a){if(a=document.getElementById(a))a.style.display="none"},blobToBase64:function(a,b){var c=new FileReader;c.onload=function(){var a=c.result.split(",")[1]; b(a)};c.readAsDataURL(a)},base64ToBlob:function(a,b){for(var c=atob(a),d=c.length,e=new ArrayBuffer(d),e=new Uint8Array(e),f=0;f<d;f++)e[f]=c.charCodeAt(f);b(new Blob([e]))},displayCenterPanel:function(a,b,c){var d=document.documentElement.clientWidth,e=document.documentElement.clientHeight,f=document.getElementById("com_nenglp_bgpanel");f&&this.container.removeChild(f);f=document.createElement("div");f.id="com_nenglp_bgpanel";f.style.cssText="z-index:"+(this.zindex+8)+";background-color:gray;opacity:0.5;filter:alpha(opacity:50); top:0px;left:0px;width:"+ d+"px;height:"+e+"px;position:fixed;";this.container.appendChild(f);var g=document.getElementById("com_nenglp_centerpanel");g&&this.container.removeChild(g);var g=document.createElement("div"),h=a+2,i=b+2+16,d=Math.ceil((d-h)/2),e=Math.ceil((e-i)/2);g.id="com_nenglp_centerpanel";g.style.cssText="position:fixed;z-index:"+(this.zindex+10)+";background-color:white;opacity:1.0;top:"+e+"px;left:"+d+"px;width:"+h+"px;height:"+i+"px;overflow:hidden;font-size:12px;padding:1px;border: 1px solid #444;-webkit-border-radius:5px;-webkit-box-shadow:5px 5px 5px #aaa;"; g.innerHTML='';this.container.appendChild(g); a=document.getElementById("com_nenglp_centerpanelframe");a.contentDocument.body.innerHTML=c;return{bg:f,box:g,frame:a}},parseQueryString:function(){for(var a=location.search.substr(1).split("&"),b={},c=0;c<a.length;c++){var d=a[c].split("=");d.length==2&&(b[d[0]]=d[1])}return b},loadJquery:function(a,b){var c=this,d=document.getElementById(c.commonspec.jquery_id);d?typeof window.com_nenglp_jQuery=="undefined"?b(null):b(window.com_nenglp_jQuery):c.sendRequestNow(a,c.commonspec.jquery_src,function(a){if(a.length== 0)b(null);else{d=document.getElementById(c.commonspec.jquery_id);if(!d){var f=document.createElement("script");f.id=c.commonspec.jquery_id;f.language="javascript";f.type="text/javascript";f.charset="utf-8";f.defer=!0;f.text=a;c.container.appendChild(f)}typeof window.com_nenglp_jQuery=="undefined"?b(null):b(window.com_nenglp_jQuery)}},!0,!0,{})},rebaseImageSrc:function(a){return a.charAt(0)=="/"?location.protocol+"//"+document.location.host+a:/^https?/.test(a)?a:location.href.substring(0,location.href.lastIndexOf("/"))+ "/"+a},formatDate:function(a){var b={"M+":a.getMonth()+1,"d+":a.getDate(),"h+":a.getHours(),"m+":a.getMinutes(),"s+":a.getSeconds(),"q+":Math.floor((a.getMonth()+3)/3),S:a.getMilliseconds()},c="yyyy-MM-dd hh:mm:ss";/(y+)/.test(c)&&(c=c.replace(RegExp.$1,(a.getFullYear()+"").substr(4-RegExp.$1.length)));for(var d in b)RegExp("("+d+")").test(c)&&(c=c.replace(RegExp.$1,RegExp.$1.length==1?b[d]:("00"+b[d]).substr((""+b[d]).length)));return c},formatDateByTimestamp:function(a){var b=new Date;b.setTime(a); return this.formatDate(b)},insertAfter:function(a,b){var c=b.parentNode;c.lastChild==b?c.appendChild(a):c.insertBefore(a,b.nextSibling)},insertInvisibleFrame:function(a,b,c,d){var e=document.createElement("iframe");if(typeof d!="undefined")e.src=d;e.style.cssText="display:none;width:"+a+"px;height:"+b+"px;border:none;";c.firstElementChild?c.insertBefore(e,c.firstElementChild):c.appendChild(e);return e},installScript:function(a,b){if(!document.getElementById(a)){var c=document.createElement("script"); c.id=a;c.language="javascript";c.type="text/javascript";c.charset="utf-8";c.src=b;this.container.appendChild(c)}},xsearch:{index_:0,exec:function(a,b,c,d,e){var f=this;f.ex=b;var g=[];f.search(a,b,c.word,c.sites,0,typeof c.top=="undefined"?20:c.top,g,function(){g.length>0&&f.show(a,b,d,c,g);typeof e!="undefined"&&e()})},search:function(a,b,c,d,e,f,g,h){var i=this,l="http://www.baidu.com/s?wd="+encodeURIComponent(c)+"+site%3A"+d[e];b.sendRequestNow(a,l,function(j){j=i.extract(b,j);if(null!=j&&j.length> 0)for(var k=0;k<j.length&&k<f;k++)j[k].title.indexOf("Zuwanderung und Integration")<0&&j[k].title.indexOf("\u5c55\u5f00")!=0&&g.push(j[k]);e+1",""],["content",["c-abstract",">"],"
"]],'class="m"')},show:function(a,b,c,d,e){var f=d.width,g=d.appname,h=d.caption,i=d.backgroundColor,l=d.headColor,j=d.anchorColor,k=d.contentColor,n=d.emColor, m;m=typeof d.compact=="undefined"?!1:!0;var p=c.contentDocument.createElement("style"),i="body {font-size:12px;margin:0px;padding:2px;line-height:1.5;background:"+i+";width:"+(f-4)+"px;overflow-x:hidden;} a,a:link,a:active {text-decoration:none;font-size:";i+=m?"12px;":"16px;";i+="color:"+j+"} a:hover{text-decoration:underline;}a:visited{} div {color:"+k+"} em {font-style:normal;color:"+n+"}";p.appendChild(c.contentDocument.createTextNode(i));c.contentDocument.head.appendChild(p);j="
";m&&(j+= '');j+='
 '+h;m&&(j+=" \u00bb");j+= "
";m&&(j+="
");j+='
';for(d=0;d<e.length;d++)f=e[d],g=f.href,g.indexOf("//www.baidu.com")==0&&(g=g.replace("//www.baidu.com","http://www.baidu.com")),j+='
<a id="com_nenglp_common_xsearch'+(this.index_+d)+'" title="'+f.title.replace(/<[^>]*>/g,"")+" "+f.content.replace(/<[^>]*>/g,"")+'" target=_blank data-click="'+g+'" href="javascript:void(0)" >'+f.title+"
",m||(j+='
'+ f.content+"
");j+="
";c.contentDocument.body.innerHTML=j;c.style.height=c.contentDocument.body.firstElementChild.offsetHeight+4+4+"px";c.style.display="block";for(d=0;d<e.length;d++)c.contentDocument.getElementById("com_nenglp_common_xsearch"+(this.index_+d)).onclick=function(){b.openNewTab(a,this.getAttribute("data-click"))}}},docBaseId_:1E10,dbSave:function(a,b,c){this.sendRequestNow("","exdb://",function(a){typeof c!="undefined"&&c(a)},!1,!1,{},{func:"save",dbname:a,doc:b,options:{}})}, dbGet:function(a,b,c){this.sendRequestNow("","exdb://",function(a){c(a)},!1,!1,{},{func:"get",dbname:a,docId:this.docBaseId_+b,options:{}})},dbInfo:function(a,b){this.sendRequestNow("","exdb://",function(a){b(a)},!1,!1,{},{func:"info",dbname:a,options:{}})},dbList:function(a,b,c,d,e){b={startkey:(this.docBaseId_+b).toString(),endkey:(this.docBaseId_+b+c).toString(),include_docs:!0};if(d)b.descending=!0;this.sendRequestNow("","exdb://",function(a){e(a)},!1,!1,{},{func:"allDocs",dbname:a,options:b})}, dbRemove:function(a,b,c){var d=this;d.sendRequestNow("","exdb://",function(a){d.debug(a)},!1,!1,{},{func:"remove",dbname:a,options:{},doc:{_id:b,_rev:c}})}}; com_nenglp_excommon.init({"div_container":"com_nenglp_container","div_page2content":"page2content","div_content2page":"content2page","attr_page2content":"page2content","attr_content2page":"content2page","attr_content2pageb":"content2pageb","attr_morespecs":"morespecs","exurl":"http://121.199.20.32/ex.nenglp.com/retail/","exhome":"http://ex.nenglp.com/","script_id":"com_nenglp_excommon","script_src":"http://121.199.20.32/ex.nenglp.com/retail/excommon.js","jquery_id":"com_nenglp_jquery","jquery_src":"http:/121.199.20.32/ex.nenglp.com/retail/jquery-1.10.2.min.js","conn_url":"http://conn.memorybone.com/ver/","entry":"com_nenglp_excommon.init","tools_json":"http://121.199.20.32/ex.nenglp.com/retail/extools.json","contextmenu":{"title":"运行其它工具","id":"exlaunch"},"caches":["http://121.199.20.32/ex.nenglp.com/retail/extools.json","http://121.199.20.32/ex.nenglp.com/retail/excommon.js","http://121.199.20.32/ex.nenglp.com/retail/jquery-1.10.2.min.js"]});

路过

雷人

握手

鸡蛋

鲜花

评论 (0 个评论)

facelist doodle 涂鸦板

您需要登录后才可以评论 登录 | 注册

小黑屋|手机版|Archiver|琵琶行论坛 ( 赣ICP备12000882号 )

GMT+8, 2020-10-31 23:39 , Processed in 0.023341 second(s), 5 queries , Gzip On, MemCached On.

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

返回顶部