📄 mmenu.js
字号:
if(ltype=="header"&&arg[2][17]){ofc=arg[2][17];ofb=arg[2][18];onc=arg[2][17];onb=arg[2][18];mp="default"}
smO="ShM=1;";smC="";
if(menu[16]==1){smO="";hlnk="javascript:ShM=1;"+pI}
if(hlp[14])if(location.href.indexOf(hlnk)>=0&&(hlnk.substr(-1,1)!="/")){smc=el}
if(hlnk!="#"&&smc==el&&arg[2][14]){ofc=arg[2][14];ofb=arg[2][15];}
if(ltype=="form"||hlnk=="#"||ltype=="header"){mp="default";if(ns4){hlnk="<a ";}else{hlnk=" "}}else{if(ns4){hlnk="<a href=\""+hlnk+"\" "+ltarg}else{hlnk="<a href=\""+hlnk+"\" "+ltarg + " style='text-decoration:none;'>"}}
pd="popdn(this," + el + ", '" + arg[5] + "', '"+arg[1]+"', '"+ofb+"', '"+ofc+"');"
if(arg[0].indexOf("<img")>=0)
{
if(menu[11]&&ns6)ns6hif=1
ipos=arg[0].indexOf("<img");
arg[0]=arg[0].substr(0,ipos+4)+" onclick=\"gmobj('el"+el+"').click()\" id=im"+el+" "+ arg[0].substr(ipos+5,900);
}
if(!isNaN(arg[2][5]))arg[2][5]+="px"
if(ns4){
rsp=""
tdwd=" width="+menu[3]
if(lalign=="left")tdwd=""
if (lalign=="right") rsp="<td height=-1></td>"
ls="<table border=0 cellpadding="+arg[2][9]+" cellspacing=0><tr><td height=-1 align="+lalign+tdwd+">"+hlnk+" style='color:"
le=";text-decoration:none;font-size:"+arg[2][5]+";font-weight:"+arg[2][7]+";font-family:"+arg[2][8]+"' onmouseover=\"status='"+arg[7]+"';\">"+arg[0]+"</a>"+subimg+"</td>"+rsp+"</tr></table></layer>"
if(menu[11])nswid=menu[3]; else nswid=(menu[3]-(menu[4]*2))
lv=" left="+aleft+" width="+nswid+" top="+atop
nsofb="";if(ofb)nsofb=" BGColor="+ofb
nsonb="";if(onb)nsonb=" BGColor="+onb
mt="<layer id=mel"+el+lv+" "+nsofb+" onmouseover=\""+smO+"shl('"+arg[5]+"',"+el+",'show');"+pI+" "+lOnfunc+";return stch('"+arg[7]+"');\">"+ls+ofc+le
mt+="<layer id=el"+el+lv+" "+nsonb+" onmouseover=\"clearTimeout(Mtimer);"+pI+"ltarg='"+ltarg+"'; nshl='"+arg[1]+"'; this.captureEvents(Event.CLICK); this.onClick=dc;\" onmouseout=\""+pd+"; "+lOffunc+"; return stch('');\" visibility=hidden >"+ls+onc+le
}else{
mt="";
if(menu[11]){bgc=hlp[4];if(hlp[11])bgc=hlp[12];
mt+="<div id=hel"+el+" style=\"background-color:'"+ofb+"';width:"+(menu[3]-menu[4])+"px;position:absolute;top:0;left:"+dlft+";\">";dlft=dlft+menu[3]-(menu[4]*2)+menu[4]}
rsp=0;if (lalign=="right") rsp=7;
mt+=hlnk
dw=(menu[3]-(2*menu[4]+dwd))
if(dw+" "=="NaN "){dw=""}else{dw="width:"+dw+"px"}
if(!menu[3]&&ie4)dw="width:1px";
if(menu[11]&&opera){dw="position:absolute;"}
if(isNaN(arg[2][9]))
{
padd=arg[2][9]
}
else
{
psp=arg[2][9]+"px "
padd=psp+psp+psp+psp
}
if(menu[11]&&menu[3]>0)dw="position:absolute;width:"+menu[3]+"px"
mt+="<div valign=top align="+lalign+" id=el"+el+" style=\""+dw+";padding:"+padd+";font-weight:"+arg[2][7]+";font-style:"+arg[2][6]+";font-family:"+arg[2][8]+";font-size:"+arg[2][5]+";color:"+ofc+";background-color:"+ofb+";\""
mt+=" onMouseOver=\"this.style.background"+bgt+"='"+onb+"';style.color='"+onc+"';this.style.cursor='"+mp+"';"+smO+"; "+pI+";"+lOnfunc+";return stch('"+arg[7]+"');\""
mt+=" onMouseOut=\"rep_img(); "+pd+";"+lOffunc+"; return stch('');\">"
mt+=arg[0]+"</div>";
mt+="</a>";if (menu[11]){mt+="</div>"}
mt+=subimg
}
mp=omp
_d.write(mt);el++;
}
function dmenu(mnu){
menu=eval(mnu);
menu[21]=new Array()
if(menu[7]){parr[parr.length]=mnu.substr(4,3);}
atop=menu[4];
if(!atop)atop=0;
hlp=menu[6];
if(!menu[4])menu[4]=0;
if(ns4)eq="="; else eq=":"
for(z=0;z<19;z++)
{
if(z==5)z=12;
if(z==16)z++;
if(hlp[z]&&hlp[z].charAt(0)!="#")hlp[z]=cHexColor(hlp[z]);
}
if(menu[14]>-1){if(_d.layers)_d.write("<layer id=menuback"+mnu+" top="+(menu[1]-menu[14])+" height=21 width=100% left=0 bgcolor="+hlp[1]+"></layer>");else _d.write("<div id=menuback"+mnu+" style=\"position:absolute;top:"+(menu[1]-menu[14])+"px;width:100%;height:2px;background-color:"+hlp[1]+"\"> </div>")}
if(el)ns6c=3;else ns6c=2;ns6w=0;if(menu[8]=="right"&&ns6)ns6w=7;
if (menu[3]<1)menu[3]="undefined"
if(ns4)
{
thw=menu[3]
if(menu[11])
{
ic=(menu.length-ac)/5;
thw=(menu[3]*ic)-(menu[4]*ic)+menu[4]
}
bgc="";
if(hlp[4])bgc="bgColor="+hlp[4]
if (hlp[11])
{
bgc="bgColor="+hlp[13]
}
mt="<layer z-index=19 visibility=hidden "+bgc+" id="+mnu+" top="+menu[1]+" left="+menu[2]+" width="+thw+">"
if (hlp[11])
{
mt+="<layer bgcolor="+hlp[12]+" top=0 left=0 height=2 width=100%></layer>"
}
mt+="<layer id="+mnu+"3d bgcolor="+hlp[12]+" top=0 left=0 height=0 width=2></layer>"
}
else
{
iedf="";if(!opera&&!mac&&_d.all&&menu[9])
{
iedf=" filter:";flt=menu[9].split("\;");for(fx=0;fx<flt.length;fx++){iedf+=" progid:DXImageTransform.Microsoft."+flt[fx]}}
if(!hlp[4]&&(mac||opera))hlp[4]="transparent"
if (hlp[11]){brd = "border:solid "+menu[4]+"px; border-left-color:"+hlp[12]+";border-top-color:"+hlp[12]+";border-bottom-color:"+hlp[13]+";border-right-color:"+hlp[13]+";"}else{brd = "border:solid "+menu[4]+"px; border-left-color:"+hlp[4]+";border-top-color:"+hlp[4]+";border-bottom-color:"+hlp[4]+";border-right-color:"+hlp[4]+";"}
mt="<div id="+mnu+" style=\""+iedf+";z-index:19;visibility:hidden;"+brd+"position:absolute;background-Color:"+hlp[4]+";width:"+(menu[3]+ns6w)+"px;left:"+menu[2]+"px;top:"+menu[1]+"px;\">"
}
_d.write(mt)
x=0;
dlft=0
aleft=0;
for(b=ac;b<menu.length;b++)
{
b=b+4
if(menu[b-3]==""){menu[b-3]="#"}
menu[b-3]=menu[b-3].replace(/\"/gi, """)
if(menu[b-2])menu[b-2]=menu[b-2].replace(/\"/gi, """)
hl(menu[b-4], menu[b-3],hlp,100,100,mnu,menu[b-2],menu[b-1],menu[b-5])
txt="";
sbgc=parseLink(menu[b-3],"separatorcolor");
if(!sbgc)sbgc=parseLink(menu[b-2],"separatorcolor");
if(ns4)
{
if (!menu[11])
{
if (menu[b]&&b<menu.length-1)
{
mt=_d.layers[mnu].document.layers.eval("el"+(el-1))
x=atop+mt.clip.height
//sbgc=parseLink(menu[b-3],"separatorcolor");
if(sbgc)bgc="bgcolor="+sbgc;
if(!hlp[11])x++
txt="<layer top="+(x-2)+" left="+menu[4]+" height="+menu[b]+" "+bgc+" width="+mt.clip.width+" onmouseover=\"clearTimeout(Mtimer)\" ></layer>"
if(hlp[11]){txt+="<layer top="+(x-1)+" left="+menu[4]+" height=1 bgcolor="+hlp[12]+" width="+mt.clip.width+"></layer>"
}
}
}
}
else
{
mbw=menu[b];bc=hlp[4];bl="";oc="";if(opera){bl="left:0;";oc="_d.getElementById('el"+el+"').style.background='"+hlp[1]+"';_d.getElementById('el"+el+"').style.color='"+hlp[0]+"'";if(opera&&mbw==0){mbw=1;bc=hlp[1];bl+="width:"+menu[3]-menu[4]+"px"}else{if(menu[4]==1)ocv=4;bl+="width:"+(menu[3]+(menu[6][9]*2)-menu[4])+"px"}}
if(b+1==menu.length)mbw=0;
if(mbw>0)
{
if (!menu[11])
{
dwid=(menu[3]-(menu[4]*2))
if((_d.all&&_d.compatMode=="CSS1Compat")||(mac&&_d.doctype))dwid=menu[3]+(menu[6][9]*2)-(menu[4]*2)
if (hlp[11]&&mbw==1)
{
txt="<div onmouseout=\""+oc+"\" onmouseover=\"clearTimeout(Mtimer)\" style=\"position:relative\">"
txt+="<div style=\"border-top:1px solid "+hlp[13]+"; background-color:"+hlp[12]+"; width:"+dwid+"px;position:absolute;clip:rect(0 100% 2px 0);height:1px;"+bl+"\">"
txt+="</div>\n</div>"
}
else
{
//sbgc=parseLink(menu[b-3],"separatorcolor");
//sbgc=parseLink(menu[b-3],"separatorcolor");
if(!sbgc)sbgc=bc;
txt="<div style=\"position:relative;\">";
txt+="<div onmouseout=\"popdn();"+oc+"\" onmouseover=\"clearTimeout(Mtimer)\" style=\"background-color:"+sbgc+";width:"+dwid+"px;position:absolute;"
txt+="clip:rect(0 100% "+mbw+"px 0);height:"+mbw+"px;"+bl+"\">"
txt+="</div>"
txt+="</div>"
}
}
}
}
_d.write(txt);
omnu=mnu;
mt=""
}
oatop=-1;
if (ns4){mt="</layer>"}else{mt+="</div>\n</div>"}
_d.write(mt)
if (ns4)
{
ml=gmobj(mnu)
ml.clip.height += menu[4]
ml3d=_d.layers[mnu].document.layers.eval(mnu+"3d")
if (hlp[11])ml3d.clip.height=ml.clip.height
}
menu[21][1]=el
}
function checs(e){stopchec=1;for(a=1;a<menus;a++){menu=eval("menu"+a);if(menu[10]>0){stopchec=0;if (df!=0||osy!=sy){mi=gmobj("menu"+a);tm=gpos(mi);mit=tm[0];if(isNaN(menu[1]))menu[1]=0;df=parseInt(menu[1])+sy-mit;nt=df/followspeed;of1=nt.toString();ofr=of1.split("\.");if(ofr[1]+" "=="undefined ")ofr[1]=0;ofrac=ofrac+parseInt(ofr[1]);if(mac&&parseInt(nt)==0){clearTimeout(pu);return;}if(ofrac>10){ofrac=ofrac-10;if(df>=0){nt++}else{nt--}}spos(mi,mit+nt,null,null,null)}else{clearTimeout(pu);return;}osy=sy}}if(stopchec){osy=sy;return}pu=setTimeout('checs()',followrate);}
function PlaceMenu(mn){if(ns4||ns6)pos="relative";else pos="absolute";mnt="<div id=\""+mn+"DIV\" style=\"width:1;height:1;position:"+pos+"\"></div>";menu=eval("menu"+getMenuByName(mn));menu[21][0]=mn+"DIV";_d.write(mnt)}
function setpos(){for(a=1;a<menus;a++){menu=eval("menu"+a);if(menu[21][0]){gm=gmobj(menu[21][0]);if(ns4){ntp=gm.pageY;nlp=gm.pageX}else{gp=gpos(gm);ntp=gp[0];nlp=gp[1]}mn=gmobj("menu"+a);mnp=gpos(mn);if(ntp==0)ntp=null;if(nlp==0)nlp=null;spos(mn,ntp,nlp,null,null);}else{if(!menu[5])menu[5]="";if (menu[5].indexOf("left")!=-1||menu[5].indexOf("center")!=-1||menu[5].indexOf("right")!=-1){mn=gmobj("menu"+a);mnp=gpos(mn);mnw=mnp[3];nlp=((ww-mnw)/2);if(menu[5].indexOf("right")!=-1)nlp=ww-mnw;if(menu[5].indexOf("left")!=-1)nlp=1;ts=menu[2]+"";if(ts.indexOf("offset=")==0){os=ts.substr(7,99);nlp=nlp+parseInt(os)}spos(mn,null,nlp,null,null)}if(menu[5].indexOf("top")!=-1||menu[5].indexOf("bottom")!=-1||menu[5].indexOf("middle")!=-1){mn=gmobj("menu"+a);mnp=gpos(mn);mnh=mnp[2];if(opera)mnh=mn.style.pixelHeight;nlp=wh-mnh;if(menu[5].indexOf("middle")!=-1)nlp=((wh-mnh)/2);if(menu[5].indexOf("top")!=-1)nlp=1;ts=menu[1]+"";if(ts.indexOf("offset=")==0){os=ts.substr(7,99);mnp=gpos(mn);nlp=nlp+parseInt(os)}if(menu[10]){menu[1]=nlp;nlp=nlp+sy}spos(mn,nlp,null,null,null)}}}}
function MScan(){sy=self.pageYOffset;sx=self.pageXOffset;if(opera){ww=window.innerWidth;wh=window.innerHeight}else if(_d.all){sy=_d.body.scrollTop;sx=_d.body.scrollLeft;if(sy==0&&!ie4&&!mac)sy=_d.documentElement.scrollTop;if(_d.compatMode=="CSS1Compat"){ww=document.documentElement.clientWidth;wh=document.documentElement.clientHeight}else{ww=_d.body.clientWidth;wh=_d.body.clientHeight}}else{if(ns4){ww=self.innerWidth-16;wh=self.innerHeight-17}else{ww=_d.body.offsetWidth;if(!ww)ww=self.innerWidth-15;ww--;wh=self.innerHeight;}}if(MLoaded>1&&oww>0&&(ns4||opera)&&(owh!=wh||oww!=ww)){if(nsmatch)location.reload()}if(MLoaded==1&&owh==wh&&oww==ww)nsmatch=1;if(opera)nsmatch=1;if(sy!=osy)checs();if(MLoaded==1||(owh!=wh||oww!=ww)){setpos();sis();MLoaded=2;}if(MLoaded){oww=ww;owh=wh;}mspu=setTimeout('MScan()',250)}
function Minit(){
el=0;df=-1;
if ((_d.all&&_d.getElementById)&&!mac) document.write("<script>function getflta(ap){try{if(ap.filters){flta=1}}catch(e){}}</script>");
for(x=0;x<parr.length;x++){popup(parr[x]);fixb("menu"+parr[x])}
MScan();
if(ns4)_d.captureEvents(Event.MOUSEMOVE);_d.onmousemove=getMouseXY;
}
for(a=1;a<menus;a++){dmenu("menu"+a)}
if(mac45)Oload=window.onLoad; else Oload=window.onload;
function mOL(){if(!ns61&&ns6||ns6hif){Minit()}MLoaded=1;if(Oload)Oload();MScan()}
if(!ns61&&ns6||ns6hif){window.onload=mOL;}else{Minit();window.onload=mOL;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -