⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 header.js

📁 交流采样的滤波资料和一些参考程序
💻 JS
字号:
/* Copyright (C) 2007 Microsoft Corporation */new function(){var r=window,q=document,c=r.ActiveXObject?1:0,j=q.body,L=j.parentNode,o=[],p="rtl"===(j.currentStyle?j.currentStyle.direction:document.defaultView.getComputedStyle(j,"").getPropertyValue("direction"))?"right":"left",d=c?q.getElementById:function(a){return q.getElementById(a)},M=d("uxp_hdr_isSafari")?1:0;function b(d,a,b){c?d.attachEvent("on"+a,b):d.addEventListener(a,b,false);o.push({target:d,eventType:a,listener:b})}function D(){var a,b=o.length;while(b--){a=o[b];c?a.target.detachEvent("on"+a.eventType,a.listener):a.target.removeEventListener(a.eventType,a.listener,false)}}function a(q,r,o){var c=this,g=d(q),j=d(r),e=d(o),f=0;if(!g||!j||!e)return;z.call(c,e);c.afterOpen=c.afterClose=function(){};b(g,"mouseup",h);b(g,"click",function(a){var c=G(a),b=c.href;if(k(e,c)&&(!b||I(b,"#"))){h(a);n(a)}else l()});b(j,"click",m);b(e,"mousedown",h);b(j,"blur",function(b){if(E(b)||b&&b.explicitOriginalTarget&&(!k(g,b.explicitOriginalTarget)||b.explicitOriginalTarget===b.target))a.hideIf()});c.hide=function(){if(f){a.hideSubmenuIf();f=s(e);a.openMenu=null;c.afterClose()}};c.show=function(){if(!f){a.hideIf();f=s(e);a.openMenu=c;if(!M)e.parentNode.style.top=K(i)+i.offsetHeight-1+"px";if(c.firstSubmenu)c.firstSubmenu.showSubmenuIfExists();c.afterOpen()}};function m(a){l();h(a);n(a)}function l(){f?c.hide():c.show()}function p(){var a=e.getElementsByTagName("A"),b=-1,d=a.length;while(++b<d)new J(a[b],c)}p()}a.hideIf=function(b){if(!b||!F(b))if(a.openMenu)a.openMenu.hide()};a.hideSubmenuIf=function(){if(g)g.hide()};function I(b,a){return a===b.slice(-a.length)}function K(a){var b=a.offsetTop;while(a=a.offsetParent)b+=a.offsetTop;return b}function s(b){var a=b.style;return "none"===a.display?(a.display="",1):(a.display="none",0)}function C(a,b){return a.className&&-1<a.className.indexOf(b)}function v(a,b){a.className+=" "+b}function t(a,b){a.className=b===a.className?"":a.className.replace(" "+b,"")}function k(b,a){if(c)return b.contains(a);try{while(a&&a!==b)a=a.parentNode;return a===b}catch(d){}}function h(a){c?(event.cancelBubble=true):a.stopPropagation()}function n(a){c?(event.returnValue=false):a.preventDefault()}function F(a){return c?1===event.button?0:2===event.button?2:1:a.button}function H(a){return c?event.keyCode:a.which}function G(a){return c?event.srcElement:a.target}function E(a){return c?event.shiftKey:a.shiftKey}var g=null;function J(e,j){var d=this,c=e.firstChild,i=c&&C(c,"uxp_hdr_rightArrow"),f=0;if(i){c=e.nextSibling;z.call(d,c);if(!j.firstSubmenu)j.firstSubmenu=d;b(e,"mouseup",function(a){f=1;h(a)});b(e,"click",function(){d===g?f?(f=0):d.hide():d.showSubmenuIfExists()})}d.showSubmenuIfExists=function(){a.hideSubmenuIf();if(i)k()};function k(){var h=e.parentNode.parentNode,f=h.offsetHeight-11,b;c.style[p]=h.offsetWidth-3+"px";c.style.visibility="hidden";c.style.display="block";c.style.height="auto";b=c.offsetHeight;if(b<f)c.style.height=f+"px";c.style.visibility="visible";if(c.nextSibling&&"IFRAME"===c.nextSibling.nodeName){var a=c.nextSibling;a.style[p]=c.style[p];a.style.height=c.offsetHeight+"px";a.style.width=c.offsetWidth+"px"}g=d;v(e,"uxp_hdr_menu_open")}d.hide=function(){t(e,"uxp_hdr_menu_open");c.style.display="none";g=null};b(e.parentNode,"mouseover",d.showSubmenuIfExists)}function z(e){var d=this,c=e.getElementsByTagName("a");function g(){var a=c.length;while(a--)b(c[a],"blur",f)}function f(b){b=b||event;if(b.explicitOriginalTarget){if(!k(e,b.explicitOriginalTarget))d.hide();else if(b.target.firstChild&&"uxp_hdr_rightArrow"===b.target.firstChild.className&&!k(b.target.nextSibling,b.explicitOriginalTarget))a.hideSubmenuIf()}else if(b.shiftKey){if(b.srcElement===c[0])d.hide();else if(b.srcElement.firstChild&&"uxp_hdr_rightArrow"===b.srcElement.firstChild.className)a.hideSubmenuIf()}else if(b.srcElement===c[c.length-1]&&"shiftKey" in b)d.hide()}g()}b(L,"mouseup",a.hideIf);var m=0,i=d("uxp_hdr"),B=i.offsetParent,e=d("uxp_hdr_tabs"),f=d("uxp_hdr_search"),l=d("uxp_hdr_jewelParent"),w=d("uxp_hdr_meParent"),y=32+(l?l.offsetWidth:0)+(e?e.offsetWidth:0)+(f&&f.parentNode?f.parentNode.offsetWidth:0)+(w?w.offsetWidth:0);function u(){var d,g=B.offsetWidth,a=e.parentNode,b=a.nextSibling;if(0===m&&g<y){b.style.display="none";a.style.paddingTop=c?"8px":"10px";if(c){e.style.marginTop="3px";a.style.paddingBottom="5px"}a.style.textAlign="center";e.style.marginLeft=e.style.marginRight="auto";a.insertBefore(f,e);d=1;m=1}else if(1===m&&y<=g){b.style.display=a.style.paddingTop=a.style.textAlign=e.style.marginLeft=e.style.marginRight="";b.appendChild(f);d=1;m=0}if(d&&c){i.style.display="none";i.style.display=""}}b(j,"keyup",A);function A(c){var d=H(c),b=27;if(b===d)a.hideIf()}if(d("uxp_hdr_productSearchButton"))b(d("uxp_hdr_productSearchButton"),"click",n);var x=new a("uxp_hdr_jewelParent","uxp_hdr_jewelLink","uxp_hdr_jewelMenu");x.afterOpen=function(){v(l,"uxp_hdr_jewelSpanOpen")};x.afterClose=function(){t(l,"uxp_hdr_jewelSpanOpen")};if(d("uxp_hdr_meLink"))new a("uxp_hdr_meParent","uxp_hdr_meLink","uxp_hdr_meMenu");if(e&&f){b(r,"resize",u);u()}b(r,"unload",D)}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -