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

📄 awmlib7.js

📁 j2ee源码
💻 JS
📖 第 1 页 / 共 2 页
字号:
function awmca(){var tw, th, iw, ih, mwt=0, mht=0, nl=nt=((awmBefore7)?this.cs.bw:0);var wts=new Array(), hts=new Array();if (this.ht){var tmpcont=document.getElementById(this.tid+"_9_0");tw=mwt=tmpcont.offsetWidth+2*this.ts.bw+2*this.ts.pd;th=mht=tmpcont.offsetHeight+2*this.ts.bw+2*this.ts.pd;}for (var p=0; p<this.it.length; p++){iw=this.it[p].minWidth+((this.it[p].style[0].bs=="none")?0:2*this.it[p].style[0].bw);ih=this.it[p].minHeight+((this.it[p].style[0].bs=="none")?0:2*this.it[p].style[0].bw);for (var q=this.pm.st-1; q>=0; q--){while(typeof(this.it[p].layerTD1[q].style)!='object');iw=Math.max(iw,this.it[p].layerTD1[q].offsetWidth+this.siw+2*this.it[p].style[q].bw);ih=Math.max(ih,Math.max(this.it[p].layerTD1[q].offsetHeight,(this.siw==0)?0:this.it[p].layerTD2[q].offsetHeight)+2*this.it[p].style[q].bw);mwt=Math.max(iw,mwt);mht=Math.max(ih,mht);}wts[p]=iw;hts[p]=ih;}if (this.ht){this.tl.style.pixelLeft=this.tl.style.pixelTop=nl;this.tl.style.pixelWidth=((this.ew)?mwt:tw);this.tl.style.pixelHeight=((this.eh)?mht:th);var tmpw1=this.tl.offsetWidth;var tmpw2=tmpcont.offsetWidth;var tmpal=this.ts.algnm;tmpcont.style.pixelLeft=((awmBefore7)?this.ts.bw:0)+((tmpal==0)?0:((tmpal==1)?(tmpw1-tmpw2)/2:tmpw1-tmpw2))+this.ts.pd;tmpcont.style.pixelTop=((awmBefore7)?this.ts.bw:0)+this.ts.pd+((this.eh)?(mht-th)/2:0);this.titleEvent.style.pixelLeft=this.tl.offsetLeft;this.titleEvent.style.pixelTop=this.tl.offsetTop;this.titleEvent.style.pixelWidth=this.tl.offsetWidth;this.titleEvent.style.pixelHeight=this.tl.offsetHeight;this.titleEvent.style.visibility="visible";this.tl.style.visibility="visible";if (this.ct==0) nt+=this.tl.offsetHeight+this.dbi; else  nl+=this.tl.offsetWidth+this.dbi;}for (var p=0; p<this.it.length; p++){for (var q=0; q<this.pm.st; q++){this.it[p].layer[q].style.pixelLeft=nl;this.it[p].layer[q].style.pixelTop=nt;this.it[p].layer[q].style.pixelWidth=((this.ew)?mwt:wts[p]);this.it[p].layer[q].style.pixelHeight=((this.eh)?mht:hts[p]);var tmpw1=this.it[p].layer[q].offsetWidth-this.siw-2*this.it[p].style[q].bw;var tmpw2=this.it[p].layerTD1[q].offsetWidth;var tmpal=this.it[p].style[q].algnm;this.it[p].layerTD1[q].style.pixelLeft=((awmBefore7)?this.it[p].style[q].bw:0)+((tmpal==0)?0:((tmpal==1)?(tmpw1-tmpw2)/2:tmpw1-tmpw2));this.it[p].layerTD1[q].style.pixelTop=(this.it[p].layer[q].offsetHeight-this.it[p].layerTD1[q].offsetHeight)/2-((!awmBefore7)?this.it[p].style[q].bw:0);if (this.siw>0){this.it[p].layerTD2[q].style.pixelLeft=this.it[p].layer[q].style.pixelWidth-this.it[p].layerTD2[q].offsetWidth-this.it[p].style[q].bw;this.it[p].layerTD2[q].style.pixelTop=(this.it[p].layer[q].style.pixelHeight-this.it[p].layerTD2[q].offsetHeight)/2;}this.it[p].layer[q].style.visibility=(q==0)?"visible":"hidden";}this.it[p].elr.style.pixelLeft=this.it[p].layer[0].offsetLeft;this.it[p].elr.style.pixelTop=this.it[p].layer[0].offsetTop;this.it[p].elr.style.pixelWidth=this.it[p].layer[0].offsetWidth;this.it[p].elr.style.pixelHeight=this.it[p].layer[0].offsetHeight;if (this.ct==0) nt+=this.it[p].layer[0].offsetHeight+this.dbi; else  nl+=this.it[p].layer[0].offsetWidth+this.dbi;}if (this.ct==0){this.layer.style.pixelWidth=mwt;this.layer.style.pixelHeight=nt;} else  {this.layer.style.pixelWidth=nl;this.layer.style.pixelHeight=mht;}if (this.ct==2) this.layer.style.pixelWidth=window.innerWidth-2*this.cs.bw;this.offLeft=this.layer.offsetLeft;this.offTop=this.layer.offsetTop;this.argd=1;}
function awmcs(sf,x,y){if (sf){this.cd=0;if (this.layer.style.pixelWidth<this.cs.bw*3) this.arr();if (arguments.length==1) this.pc();else  {this.left=this.layer.style.pixelLeft=x;this.top=this.layer.style.pixelTop=y;}this.layer.style.visibility="visible";if (this.jcoo!=null) eval(this.jcoo);if (this.ind==0) if (this.pm.selectedItem>0) this.it[this.pm.selectedItem-1].shst(2);} else  {if (!this.ft || this.mio || this.cd) return;this.layer.style.pixelLeft=-3000;this.layer.style.pixelLeft=-3000;clearInterval (this.uid);awmun=0;if (this.pi!=null) if (this.pm.selectedItem<1){this.pi.shst(0);}else  {if (this.pi.ind==this.pm.selectedItem-1 && this.pi.ps.ind==0){this.pi.shst(2);} else  {this.pi.shst(0);}}if (this.jcoc!=null && !this.cd) eval(this.jcoc);this.cd=1;}}
function awmchdt(flg){var p;for (p=0; p<this.it.length; p++){if (this.it[p].sm!=n) this.it[p].sm.hdt(0);}if (arguments.length==1) this.show(0);}
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(){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){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;for (q=0; q<this.pm.st; q++)this.layer[q].style.visibility=(q==sts)?"visible":"hidden";}
function awmoimo(){if (awmctm!=null) return;if (awmdemo){awmdemo=0;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=="") 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);awmdemo=1;if (this.sm!=n) if (this.sm.swn){clearTimeout(this.sm.hsid);this.sm.show(1);}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"){this.pm.mio=0;this.ps.mio=0;this.pm.cm();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(){this.shst(1);}
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=window.pageXOffset,vt=window.pageYOffset,vr=vl+window.innerWidth,vb=vt+window.innerHeight;if (this.pi==null){var tmpEl=document.getElementById("awmAnchor-"+this.pm.nm);if (tmpEl){var existsTableTag=0;var x=0, y=0;while (tmpEl.tagName!="HTML"){x+=(awmBefore7)?tmpEl.style.pixelLeft:((tmpEl.tagName=="DIV" || tmpEl.tagName=="TBODY" || tmpEl.tagName=="SPAN" || tmpEl.tagName=="CENTER" || tmpEl.tagName=="P" || (tmpEl.tagName=="TR" && awmAfter71))?0:tmpEl.offsetLeft);y+=(awmBefore7)?tmpEl.style.pixelTop:((tmpEl.tagName=="DIV" || tmpEl.tagName=="TBODY" || tmpEl.tagName=="SPAN" || tmpEl.tagName=="CENTER" || tmpEl.tagName=="P" || (tmpEl.tagName=="TR" && awmAfter71))?0:tmpEl.offsetTop);if (tmpEl.tagName=="TABLE") existsTableTag=1;tmpEl=tmpEl.parentNode;}if (!existsTableTag){var tmpEl=document.getElementById("awmAnchor-"+this.pm.nm);x=tmpEl.offsetLeft;y=tmpEl.offsetTop;}this.left=this.top=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.left+=(this.pm.dft==1 || this.pm.dft==3 || this.pm.dft==4 || this.pm.dft==6)?vl:0;this.top+=(this.pm.dft==1 || this.pm.dft==2 || this.pm.dft==4 || this.pm.dft==5)?vt:0;this.left=this.layer.style.pixelLeft=x+((awmSafOffsetX)?awmSafOffsetX:0)+this.left;this.top=this.layer.style.pixelTop=y+((awmSafOffsetY)?awmSafOffsetY:0)+this.top;} else  {var crn=me.crn;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+=(awmSafOffsetX)?awmSafOffsetX: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+=(awmSafOffsetY)?awmSafOffsetY: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.style.pixelWidth>vr) && (psl.offsetLeft-this.swr-this.layer.style.pixelWidth>vl))?2:1;else this.lod=((psl.offsetTop+psl.offsetHeight+this.swr+this.layer.style.pixelHeight>vb) && (psl.offsetTop-this.swr-this.layer.style.pixelHeight>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)?window.pageXOffset: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+window.pageYOffset-parent.frames[this.pi.pm.awmParentFrameName].pageYOffset: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+window.pageXOffset: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)?window.pageYOffset:psl.offsetTop+psl.offsetHeight)+this.swr:psl.offsetTop-this.layer.offsetHeight-this.swr;}}}
function awmwr(){if (!(awmSubmenusFrameOffset>-9000)){for (var mno=0; mno<awmm.length; mno++){if (awmm[mno].cn[0].ct==2) awmm[mno].cn[0].layer.style.width=window.innerWidth-2*awmm[mno].cn[0].cs.bw;if (!awmm[mno].rep) awmm[mno].cn[0].pc();}}}
function awmwu(){if (awmSubmenusFrameOffset>-9000){for (var mno=0; mno<awmm.length; mno++){if (awmm[mno].cn[0].pi!=null){awmm[mno].cn[0].pi.shst(0);awmm[mno].cn[0].pi.sm=null;}}}}
function awmDrift2(){if (window.outerWidth!=awmliw || window.outerHeight!=awmlih){awmliw=window.outerWidth;awmlih=window.outerHeight;awmwr();}}
function awmDriftSmooth(){var csx=window.pageXOffset;var csy=window.pageYOffset;var clientX=window.innerWidth;var clientY=window.innerHeight;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.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(awmlsx,awmlsy){var csx=window.pageXOffset;var csy=window.pageYOffset;if (csx!=awmlsx ||csy!=awmlsy){clearInterval(awmdsid);awmdsid=setInterval("awmDriftSmooth()",75);for (var mno=0; mno<awmm.length; mno++){var crm=awmm[mno];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;}awmdid=setTimeout ("awmd("+awmlsx+","+awmlsy+");",100);}
function awmbmm(noarrange){if (typeof(awmTarget)!='undefined' && this.ind>0) return;document.onmousedown=awmodmd;status="."+(this.ind+1);this.ght();this.whtd();for (var cno=0; cno<this.cn.length; cno++) this.cn[cno].fe();if (arguments.length==0){var tmpcont=document.getElementById(awmm[0].cn[0].it[awmm[0].cn[0].it.length-1].id+"_9_0");while (typeof(tmpcont)!="object") var tmpcont=document.getElementById(awmm[0].cn[0].it[awmm[0].cn[0].it.length-1].id+"_9_0");for (var mno=0; mno<awmm.length; mno++){for (var cno=0; cno<awmm[mno].cn.length; cno++){awmm[mno].cn[cno].arr();if (!awmm[mno].cll && awmm[mno].cn[cno].ind==0){var awmlsx=window.pageXOffset,awmlsy=window.pageYOffset;awmm[mno].cn[cno].show(1);}}}}status=awmDefaultStatusbarText;clearTimeout(awmdid);awmdid=setTimeout("awmd("+awmlsx+","+awmlsy+");",100);awmsoo=awmso+1;}
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) ml[i].cn[0].show(1);else  ml[i].cn[0].show(1,x,y);}ml=null;}}

⌨️ 快捷键说明

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