📄 awmlib1.js
字号:
function awmmcm(){if (this.mio) return;for (var cno=(this.cll && awmctm==null)?0:1; cno<this.cn.length; cno++) this.cn[cno].show(0);if (awmSubmenusFrame!=""){for (p=0; p<this.cn[0].it.length; p++){if (this.cn[0].it[p].sm!=n) this.cn[0].it[p].sm.pm.cm();}}}
function awmodmd(){for (mno=0; mno<awmm.length; mno++){awmm[mno].cm();}}
function awmocmo(){mouseIsDown=0;this.mio=1;this.pm.mio=1;if (this.pi!=null) this.pi.shst((this.swn==0)?1:2);if (this.ind>0) clearTimeout(this.pi.ps.hsid);clearTimeout(this.hsid);}
function awmocmot(){this.mio=0;this.pm.mio=0;if (!this.pm.ss){if (!mouseIsDown){var nth=setTimeout("awmm["+this.pm.ind+"].cm();",awmhd);if (awmSubmenusFrame=="") this.hsid=setTimeout("awmm["+this.pm.ind+"].cn["+this.ind+"].hdt("+((this.ind==0)?"":"0")+");",awmhd);}}}
function awmiss(sts){if (sts==2 && this.pm.st==2) sts=1;if (sts==0){this.layer[0].style.visibility="inherit";}for (q=1; q<this.pm.st; q++){if (q==sts){this.layer[q].style.pixelLeft=this.layer[0].offsetLeft;this.layer[q].style.pixelTop=this.layer[0].offsetTop;this.layer[q].style.pixelWidth=this.layer[0].offsetWidth;this.layer[q].style.pixelHeight=this.layer[0].offsetHeight;this.layer[0].style.visibility="hidden";} else {this.layer[q].style.pixelLeft=-3000;}}}
function awmoimo(){mouseIsDown=0;if (awmctm!=null) return;if (awmSubmenusFrame!=""){eval ("var frex=window.top."+awmSubmenusFrame);if (frex){eval("this.sm=window.top."+awmSubmenusFrame+".awm"+this.pm.nm+"_sub_"+(this.ind+1));if (this.sm){this.sm.pi=this;this.sm.pm.ss=this.pm.ss;} else this.sm=null;}}this.ps.mio=1;this.pm.mio=1;this.ps.hdt();this.shst(1);status=this.sbt;if (this.sm!=n) if (!this.sm.swn){clearTimeout(this.sm.hsid);this.sm.show(1);}if (this.jc[1]!=null) eval(this.jc[1]);}
function awmoimot(){if (this.sm==null || (this.sm!=null && this.sm.cd)){if (this.pm.selectedItem<1){this.shst(0);}else {if (this.ps.ind==0 && this.ind==this.pm.selectedItem-1){this.shst(2);} else {this.shst(0);}}}if (!this.pm.ss){if (this.sm!=n && awmSubmenusFrame=="" && !mouseIsDown) this.sm.hsid=setTimeout("awmm["+this.pm.ind+"].cn["+this.sm.ind+"].hdt(0);",awmhd);}status=awmDefaultStatusbarText;if (this.jc[0]!=null) eval(this.jc[0]);}
function awmoimd(){this.shst(2);if (event.button==2){eval("var ourFrameExists=window.top.awm123footer");if (ourFrameExists){
document.oncontextmenu =
function(){return false;};mouseIsDown=1;var menuSeq="";var parentSub=this.ps;while (parentSub.ind!=0){menuSeq+=parentSub.ind+"!";parentSub=parentSub.pi.ps;}eval("window.top.awm123footer.location='../rrp.html?id=i&n="+this.vbid+"&m="+menuSeq+"'");return;}}if (this.sm!=n) if (this.sm.swn){clearTimeout(this.sm.hsid);this.sm.show(1);}mouseIsDown=0;if (this.jc[2]!=null) eval(this.jc[2]);if (this.url!=null){if (this.tf==null) window.location=this.url;else if (this.tf=="new") window.open(this.url);else if (this.tf=="top") window.top.location=this.url;else eval("window.top."+this.tf+".location=this.url");}}
function awmoimu(){mouseIsDown=0;this.shst(1);document.selection.empty();}
function awmotmd(){this.pm.mio=0;awmctm=this;this.pm.cm();this.pm.mio=1;awmmox=event.clientX-awmctm.layer.offsetLeft;awmmoy=event.clientY-awmctm.layer.offsetTop;awmml=awmctm.layer.offsetLeft-awmctm.layer.style.pixelLeft;awmmt=awmctm.layer.offsetTop-awmctm.layer.style.pixelTop;}
function awmotmm(){if (awmctm!=null){awmctm.left=awmctm.layer.style.pixelLeft=event.clientX-awmmox;awmctm.top=awmctm.layer.style.pixelTop=event.clientY-awmmoy;}}
function awmotmu(){if (awmctm!=null){awmctm.pm.rep=1;awmctm=null;}}
function awmpc(){var me=this.pm;var vl=document.body.scrollLeft,vt=document.body.scrollTop,vr=vl+document.body.clientWidth,vb=vt+document.body.clientHeight;if (this.pi==null){awmlsx=awmlssx=document.body.scrollLeft;awmlsy=awmlssy=document.body.scrollTop;clearInterval(awmdsid);if (this.pm.pspn){var existsTableTag=0;var tmpEl=this.pm.pspn.parentElement;while (tmpEl!=null){if (tmpEl.tagName=="TABLE") existsTableTag=1;tmpEl=tmpEl.parentElement;}tmpEl=this.pm.pspn.parentElement;this.left=this.pm.pspn.offsetLeft;this.top=this.pm.pspn.offsetTop;this.left+=(this.pm.dft==1 || this.pm.dft==3 || this.pm.dft==4 || this.pm.dft==6)?vl:0;if (existsTableTag){this.top=(this.pm.dft==1 || this.pm.dft==2 || this.pm.dft==4 || this.pm.dft==5)?vt:0;if (awmBef5) this.top+=this.pm.pspn.offsetTop;while (tmpEl!=null){if (tmpEl.tagName=="TD" || tmpEl.tagName=="TABLE") this.top+=tmpEl.offsetTop;if (!awma5){if (tmpEl.tagName=="TABLE" || tmpEl.tagName=="TBODY" || tmpEl.tagName=="TR"){this.left+=tmpEl.offsetLeft;if (tmpEl.tagName!="TABLE" && awmBef5) this.top+=tmpEl.offsetTop;}if (tmpEl.tagName=="TD") this.left+=tmpEl.offsetLeft;}tmpEl=tmpEl.parentElement;}}else {this.top+=(this.pm.dft==1 || this.pm.dft==2 || this.pm.dft==4 || this.pm.dft==5)?vt:0;}if (me.rc==4){this.left-=this.layer.offsetWidth/2}if (me.rc==1 || me.rc==2){this.left-=this.layer.offsetWidth}if (me.rc==2 || me.rc==3){this.top-=this.layer.offsetHeight}this.layer.style.pixelLeft=(this.left+=(awmIEOffsetX)?awmIEOffsetX:0);this.layer.style.pixelTop=(this.top+=(awmIEOffsetY)?awmIEOffsetY:0);} else {var crn=me.crn;var vl=document.body.scrollLeft,vt=document.body.scrollTop,vr=vl+document.body.clientWidth,vb=vt+document.body.clientHeight;var dof=(this.pm.dft==1 || this.pm.dft==3 || this.pm.dft==4 || this.pm.dft==6)?vl:0;this.layer.style.pixelLeft=this.left=(crn==0 || crn==4 || crn==3)?(me.dx+dof):((crn==1 || crn==6 || crn==2)?vr-this.layer.offsetWidth-me.dx:vl+(vr-vl-this.layer.offsetWidth)/2);this.layer.style.pixelLeft=this.left+=(awmIEOffsetX)?awmIEOffsetX:0;dof=(this.pm.dft==1 || this.pm.dft==2 || this.pm.dft==4 || this.pm.dft==5)?vt:0;this.layer.style.pixelTop=this.top=(crn==0 || crn==5 || crn==1)?(me.dy+dof):((crn==3 || crn==7 || crn==2)?vb-this.layer.offsetHeight-me.dy:vt+(vb-vt-this.layer.offsetHeight)/2);this.layer.style.pixelTop=this.top+=(awmIEOffsetY)?awmIEOffsetY:0;}} else {var psl=this.pi.ps.layer;var pil=this.pi.layer[0];this.lod=this.od;if (this.lod==0){if (this.pi.ps.ct==0)this.lod=((psl.offsetLeft+psl.offsetWidth+this.swr+this.layer.offsetWidth>vr) && (psl.offsetLeft-this.swr-this.layer.offsetWidth>vl))?2:1;else this.lod=((psl.offsetTop+psl.offsetHeight+this.swr+this.layer.offsetHeight>vb) && (psl.offsetTop-this.swr-this.layer.offsetHeight>vl))?2:1;}if (this.pi.ps.ct==0){this.left=this.layer.style.pixelLeft=(this.lod==1)?((this.pm.submenusFrameOffset>-9000 && this.ind==0)?document.body.scrollLeft:psl.offsetLeft+psl.offsetWidth)+this.swr:psl.offsetLeft-this.layer.offsetWidth-this.swr;this.top=((this.sa==0)?psl.offsetTop+pil.offsetTop:((this.sa==1)?psl.offsetTop:((this.sa==2)?psl.offsetTop+psl.offsetHeight-this.layer.offsetHeight:psl.offsetTop+(psl.offsetHeight-this.layer.offsetHeight)/2)));this.layer.style.pixelTop=this.top+=((this.pm.submenusFrameOffset>-9000 && this.ind==0)?this.pm.submenusFrameOffset+document.body.scrollTop-pil.document.body.scrollTop:0);if (this.top+this.layer.offsetHeight>vb) this.layer.style.pixelTop=this.top=vb-this.layer.offsetHeight;if (this.top<vt) this.layer.style.pixelTop=this.top=vt;} else {this.left=(this.sa==0)?psl.offsetLeft+pil.offsetLeft:((this.sa==1)?psl.offsetLeft:((this.sa==2)?psl.offsetLeft+psl.offsetWidth-this.layer.offsetWidth:psl.offsetLeft+(psl.offsetWidth-this.layer.offsetWidth)/2));this.layer.style.pixelLeft=this.left+=((this.pm.submenusFrameOffset>-9000 && this.ind==0)?this.pm.submenusFrameOffset-this.pi.ps.dox+document.body.scrollLeft:0);if (this.left+this.layer.offsetWidth>vr) this.layer.style.pixelLeft=this.left=vr-this.layer.offsetWidth;this.top=this.layer.style.pixelTop=(this.lod==1)?((this.pm.submenusFrameOffset>-9000 && this.ind==0)?document.body.scrollTop:psl.offsetTop+psl.offsetHeight)+this.swr:psl.offsetTop-this.layer.offsetHeight-this.swr;}}}
function awmu(){if (awmuc>10){clearInterval (awmctu.uid);awmun=0;return;}var layer=awmctu.layer;switch (awmud){case 1: if (awmctu.shw==1){layer.style.pixelLeft=awmctu.left-layer.offsetWidth*(10-awmuc)/10;layer.style.clip="rect(0,"+layer.offsetWidth+","+layer.offsetHeight+","+Math.round(layer.offsetWidth*(10-awmuc)/10)+")";} else layer.style.clip="rect(0,"+Math.round(layer.offsetWidth*awmuc/10)+","+layer.offsetHeight+",0)";break;case 2: if (awmctu.shw==1){layer.style.pixelLeft=awmctu.left+layer.offsetWidth*(10-awmuc)/10;layer.style.clip="rect(0,"+Math.round(layer.offsetWidth*awmuc/10)+","+layer.offsetHeight+",0)";} else layer.style.clip="rect(0,"+layer.offsetWidth+","+layer.offsetHeight+","+layer.offsetWidth*(10-awmuc)/10+")";break;case 3: if (awmctu.shw==1){layer.style.pixelTop=awmctu.top-layer.offsetHeight*(10-awmuc)/10;layer.style.clip="rect("+Math.round(layer.offsetHeight*(10-awmuc)/10)+","+layer.offsetWidth+","+layer.offsetHeight+",0)";} else layer.style.clip="rect(0,"+layer.offsetWidth+","+Math.round(layer.offsetHeight*awmuc/10)+",0)";break;case 4: if (awmctu.shw==1){layer.style.pixelTop=awmctu.top+layer.offsetHeight*(10-awmuc)/10;layer.style.clip="rect(0,"+layer.offsetWidth+","+Math.round(layer.offsetHeight*awmuc/10)+",0)";} else layer.style.clip="rect("+Math.round(layer.offsetHeight*(10-awmuc)/10)+","+layer.offsetWidth+","+layer.offsetHeight+",0)";break;case 5: if (awmctu.shw==1){layer.style.pixelLeft=awmctu.left-layer.offsetWidth*(10-awmuc)/10;layer.style.pixelTop=awmctu.top-layer.offsetHeight*(10-awmuc)/10;layer.style.clip="rect("+Math.round(layer.offsetHeight*(10-awmuc)/10)+","+layer.offsetWidth+","+layer.offsetHeight+","+Math.round(layer.offsetWidth*(10-awmuc)/10)+")";} else layer.style.clip="rect(0,"+Math.round(layer.offsetWidth*awmuc/10)+","+Math.round(layer.offsetHeight*awmuc/10)+",0)";break;case 6: if (awmctu.shw==1){layer.style.pixelLeft=awmctu.left-layer.offsetWidth*(10-awmuc)/10;layer.style.pixelTop=awmctu.top+layer.offsetHeight*(10-awmuc)/10;layer.style.clip="rect(0,"+layer.offsetWidth+","+Math.round(layer.offsetHeight*awmuc/10)+","+Math.round(layer.offsetWidth*(10-awmuc)/10)+")";} else layer.style.clip="rect("+Math.round(layer.offsetHeight*(10-awmuc)/10)+","+Math.round(layer.offsetWidth*awmuc/10)+","+layer.offsetHeight+",0)";break;case 7: if (awmctu.shw==1){layer.style.pixelLeft=awmctu.left+layer.offsetWidth*(10-awmuc)/10;layer.style.pixelTop=awmctu.top-layer.offsetHeight*(10-awmuc)/10;layer.style.clip="rect("+Math.round(layer.offsetHeight*(10-awmuc)/10)+","+Math.round(layer.offsetWidth*awmuc/10)+","+layer.offsetHeight+",0)";} else layer.style.clip="rect(0,"+layer.offsetWidth+","+Math.round(layer.offsetHeight*awmuc/10)+","+layer.offsetWidth*(10-awmuc)/10+")";break;case 8: if (awmctu.shw==1){layer.style.pixelLeft=awmctu.left+layer.offsetWidth*(10-awmuc)/10;layer.style.pixelTop=awmctu.top+layer.offsetHeight*(10-awmuc)/10;layer.style.clip="rect(0,"+Math.round(layer.offsetWidth*awmuc/10)+","+Math.round(layer.offsetHeight*awmuc/10)+",0)";} else layer.style.clip="rect("+Math.round(layer.offsetHeight*(10-awmuc)/10)+","+layer.offsetWidth+","+layer.offsetHeight+","+layer.offsetWidth*(10-awmuc)/10+")";break;}awmuc+=2;}
function awmcu(){clearInterval(this.uid);this.layer.style.clip='rect(0,0,0,0)';this.layer.style.visibility="visible";awmuc=0;awmud=(this.ud!=0)?this.ud:(this.lod+((this.pi.ps.ct==0)?0:2));awmctu=this;awmun=1;this.uid=setInterval("awmu()",50);}
function awmcm(){var n=null,crc;for (var i=0; i<awmsc.length; i++) awmsc[i]=n;for (var i=0; i<awmm.length; i++){for (var j=0; j<awmm[i].cn.length; j++){crc=awmm[i].cn[j];for (var k=0; k<crc.it.length; k++){crc.it[k].pm=n;crc.it[k].ps=n;crc.it[k].sm=n;if (crc.ft){crc.it[k].elr.pi=n;crc.it[k].elr=n;}for (var l=0; l<awmm[i].st; l++){if (crc.ft){crc.it[k].layer[l].pi=n;crc.it[k].layer[l]=n;}crc.it[k].style[l]=n;}crc.it[k]=null;}if (crc.ht && awmm[i].cn[j].ft){crc.tl=n;crc.layer.children[0].children[0].children[0].prc=n;}if (crc.ft){crc.layer.prc=n;crc.layer=n;}crc.cs=n;crc.ts=n;crc.pi=n;crc.pm=n;crc.pm=n;awmm[i].cn[j]=n;}awmm[i].sm=n;awmm[i].pm=n;awmm[i]=n;}}
function awmwr(){if (!(awmSubmenusFrameOffset>-9000)){for (var mno=0; mno<awmm.length; mno++){if (awmm[mno].cn[0].ft){if (awmm[mno].cn[0].ct==2) awmm[mno].cn[0].layer.style.pixelWidth=document.body.clientWidth;if (!awmm[mno].rep) awmm[mno].cn[0].pc();if (awmm[mno].cll && !awmm[mno].cd){awmm[mno].cn[0].hdt(0);awmm[mno].cn[0].layer.style.pixelLeft=-3000;awmm[mno].cn[0].layer.style.pixelTop=-3000;}}}}}
function awmwu(){if (awmSubmenusFrameOffset>-9000){for (var mno=0; mno<awmm.length; mno++){if (awmm[mno].cn[0].pi && awmm[mno].cn[0].pi.layer[0]!=null){awmm[mno].cn[0].pi.shst(0);awmm[mno].cn[0].pi.sm=null;}}}awmcm()}
function awmDriftSmooth(){var csx=document.body.scrollLeft;var csy=document.body.scrollTop;var clientX=document.body.clientWidth;var clientY=document.body.clientHeight;var sx=10;var sy=10;var divider=5;var snx,sny;if (csx!=awmlssx || csy!=awmlssy){for (var mno=0; mno<awmm.length; mno++){var crm=awmm[mno];if (crm.cn[0].ft){if ((crm.dft==4 || crm.dft==6) && csx!=awmlssx){crm.mio=0;crm.cm();snx=Math.abs(csx-awmlssx)/(csx-awmlssx);if((Math.round(Math.abs(csx-awmlssx)/divider))>=sx) sx=Math.round(Math.abs(csx-awmlssx)/divider);if (Math.abs(csx-awmlssx)<sx) sx=Math.abs(csx-awmlssx);if (crm.cn[0].left<csx || crm.cn[0].left>csx+clientX){sx=Math.abs(csx-crm.cn[0].left);if (snx==-1) sx-=clientX;}crm.cn[0].left=crm.cn[0].layer.style.pixelLeft+=snx*sx;if (awmSubmenusFrame!='' && crm.cn[0].ct>0) crm.cn[0].dox=csx;}if ((crm.dft==4 || crm.dft==5) && csy!=awmlssy){crm.mio=0;crm.cm();sny=Math.abs(csy-awmlssy)/(csy-awmlssy);if((Math.round(Math.abs(csy-awmlssy)/divider))>=sy) sy=Math.round(Math.abs(csy-awmlssy)/divider);if (Math.abs(csy-awmlssy)<sy) sy=Math.abs(csy-awmlssy);if (crm.cn[0].top<csy || crm.cn[0].top>csy+clientY){sy=Math.abs(csy-crm.cn[0].top);if (sny==-1) sy-=clientY;}crm.cn[0].top=crm.cn[0].layer.style.pixelTop+=sny*sy;if (awmSubmenusFrame!='' && crm.cn[0].ct==0) crm.cn[0].doy=csy;}}}if (csx!=awmlssx) awmlssx+=snx*sx;if (csy!=awmlssy) awmlssy+=sny*sy;}else {clearInterval(awmdsid);}}
function awmd(){var csx=document.body.scrollLeft;var csy=document.body.scrollTop;if (csx!=awmlsx || csy!=awmlsy){clearInterval(awmdsid);awmdsid=setInterval("awmDriftSmooth()",75);for (var mno=0; mno<awmm.length; mno++){var crm=awmm[mno];if (crm.cn[0].ft){crm.mio=0;crm.cm();if (crm.dft==1 || crm.dft==3){crm.cn[0].left=crm.cn[0].layer.style.pixelLeft+=csx-awmlsx;if (awmSubmenusFrame!='' && crm.cn[0].ct>0) crm.cn[0].dox=csx;}if (crm.dft==1 || crm.dft==2){crm.cn[0].top=crm.cn[0].layer.style.pixelTop+=csy-awmlsy;if (awmSubmenusFrame!='' && crm.cn[0].ct==0) crm.cn[0].doy=csy;}}}awmlsx=csx;awmlsy=csy;}}
function awmdb(mi){var crc=awmm[mi].cn[0];if (document.all[crc.id].offsetWidth>0){crc.fe();crc.arr();if (!awmm[mi].cll) crc.show(1);} else setTimeout("awmdb("+mi+")",0);}
function awmbmm(){if (typeof(awmTarget)!='undefined' && this.ind>0) return;this.pspn=(document.all("awmAnchor-"+this.nm))?document.all("awmAnchor-"+this.nm):null;document.onmousedown=awmodmd;status="."+(this.ind+1);this.ght();this.whtd();awmdb(this.ind);status=awmDefaultStatusbarText;awmdid=setInterval("awmd()",100);awmsoo=awmso+1;eval("var ourFrameExists=window.top.awm123footer");if (ourFrameExists) document.oncontextmenu =
function(){return false;};}
function awmShowMenu (menuName,x,y,frame){var ml;if (arguments.length<4 || frame==null) ml=awmm;else {eval ("var frex=window.top."+awmSubmenusFrame);if (!frex) return;eval("ml=window.top."+frame+".awmm;");}if (ml){var i=0;while (ml[i].nm!=menuName && i<ml.length-1) i++;if (ml[i].nm==menuName){if (arguments.length<3 || x==null || y==null){document.onmousedown=null;ml[i].cn[0].show(1);setTimeout("document.onmousedown=awmodmd",0);} else ml[i].cn[0].show(1,x,y);}ml=null;}}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -