📄 showclass_menu01.js
字号:
document.writeln("function mtoout(src){");
document.writeln("");
document.writeln("src.style.borderLeftColor=mmenuoutbordercolor;");
document.writeln("src.style.borderRightColor=mmenuinbordercolor;");
document.writeln("src.style.borderTopColor=mmenuoutbordercolor;");
document.writeln("src.style.borderBottomColor=mmenuinbordercolor;");
document.writeln("src.style.backgroundColor=mmenuoutcolor;");
document.writeln("src.style.color=mmenuovercolor;");
document.writeln("}");
document.writeln("function mtoin(src){");
document.writeln("");
document.writeln("src.style.borderLeftColor=mmenuinbordercolor;");
document.writeln("src.style.borderRightColor=mmenuoutbordercolor;");
document.writeln("src.style.borderTopColor=mmenuinbordercolor;");
document.writeln("src.style.borderBottomColor=mmenuoutbordercolor;");
document.writeln("src.style.backgroundColor=mmenuincolor;");
document.writeln("src.style.color=mmenuovercolor;");
document.writeln("}");
document.writeln("function mnochange(src){");
document.writeln("src.style.borderLeftColor=mmenucolor;");
document.writeln("src.style.borderRightColor=mmenucolor;");
document.writeln("src.style.borderTopColor=mmenucolor;");
document.writeln("src.style.borderBottomColor=mmenucolor;");
document.writeln("src.style.backgroundColor=\'\';");
document.writeln("src.style.color=mfontcolor;");
document.writeln("");
document.writeln("}");
document.writeln("function mallhide(){");
document.writeln(" for(var nummenu=0;nummenu<mmenus.length;nummenu++){");
document.writeln(" var themenu=document.getElementById(\'mMenu\'+nummenu)");
document.writeln(" var themenudiv=document.getElementById(\'mmenudiv\'+nummenu)");
document.writeln(" mnochange(themenu);");
document.writeln(" mmenuhide(themenudiv);");
document.writeln(" }");
document.writeln(" for(nummenu=1;nummenu<=mnumberofsub;nummenu++){ ");
document.writeln(" var thesub=document.getElementById(\'msubmenudiv\'+nummenu) ");
document.writeln(" msubmenuhide(thesub);");
document.writeln(" mnochange(document.getElementById(\'mp\'+nummenu));");
document.writeln(" document.getElementById(\"mitem\"+nummenu).style.color=mfontcolor;");
document.writeln(" }");
document.writeln("}");
document.writeln("function mmenuhide(menuid){");
document.writeln("menuid.style.filter=\'Alpha(Opacity=100)\';");
document.writeln("hideSwipe(menuid);");
document.writeln("misShow=false;");
document.writeln("}");
document.writeln("function msubmenuhide(menuid){");
document.writeln("menuid.style.filter=\'Alpha(Opacity=100)\';");
document.writeln("menuid.style.visibility=\'hidden\';");
document.writeln("}");
document.writeln("function mmenushow(menuid,pid){");
document.writeln("menuid.style.filter=\'Alpha(Opacity=80)\';");
document.writeln("menuid.style.left=mposflag.offsetLeft+pid.offsetLeft+mmenuadjust-3;menuid.style.top=mposflag.offsetTop+mmenutable.offsetHeight+mmenuadjustV;");
document.writeln("if(mmenuitemwidth+parseInt(menuid.style.left)>document.body.clientWidth+document.body.scrollLeft)");
document.writeln("menuid.style.left=document.body.clientWidth+document.body.scrollLeft-mmenuitemwidth;");
document.writeln("mtmpleft=menuid.style.left;mtmptop=menuid.style.top;swipe(menuid,2,4);");
document.writeln("misShow=true;");
document.writeln("}");
document.writeln("function mshowsubmenu(menuid,pid,rid){");
document.writeln("menuid.style.filter=\'Alpha(Opacity=100)\';");
document.writeln("menuid.style.left=pid.offsetWidth+rid.offsetLeft;");
document.writeln("menuid.style.top=pid.offsetTop+rid.offsetTop-3;");
document.writeln("if(mmenuitemwidth+parseInt(menuid.style.left)>document.body.clientWidth+document.body.scrollLeft)");
document.writeln("menuid.style.left=document.body.clientWidth+document.body.scrollLeft-mmenuitemwidth;");
document.writeln("menuid.style.visibility=\'visible\';");
document.writeln("}");
document.writeln("function mmenu_over(menuid,x){");
document.writeln("toel = getReal(window.event.toElement, \"className\", \"coolButton\");");
document.writeln("fromel = getReal(window.event.fromElement, \"className\", \"coolButton\");");
document.writeln("if (toel == fromel) return;");
document.writeln("if(x<0){");
document.writeln(" misShow = false;");
document.writeln(" mallhide();");
document.writeln(" mtoout(eval(\"mMenu\"+x));");
document.writeln("}else{");
document.writeln("");
document.writeln(" mallhide();");
document.writeln(" mtoin(eval(\"mMenu\"+x));");
document.writeln(" mmenushow(menuid,eval(\"mMenu\"+x));");
document.writeln("");
document.writeln("}");
document.writeln("clearTimeout(mpopTimer);");
document.writeln("}");
document.writeln("function mmenu_out(x){");
document.writeln("toel = getReal(window.event.toElement, \"className\", \"coolButton\");");
document.writeln("fromel = getReal(window.event.fromElement, \"className\", \"coolButton\");");
document.writeln("if (toel == fromel) return;");
document.writeln("if (misShow){");
document.writeln("mtoin(eval(\"mMenu\"+x));");
document.writeln("}else{");
document.writeln("mnochange(eval(\"mMenu\"+x));");
document.writeln("}");
document.writeln("mpopOut()");
document.writeln("}");
document.writeln("function mmenu_down(menuid,x){");
document.writeln(" if(misShow){");
document.writeln(" mmenuhide(menuid);");
document.writeln(" mtoout(eval(\"mMenu\"+x));");
document.writeln(" }");
document.writeln(" else{");
document.writeln(" mtoin(eval(\"mMenu\"+x));");
document.writeln(" mmenushow(menuid,eval(\"mMenu\"+x));");
document.writeln(" misdown=true;");
document.writeln(" }");
document.writeln("}");
document.writeln("function mmenu_up(){");
document.writeln(" misdown=false;");
document.writeln("}");
document.writeln("function mmenuitem_over(menuid,item,x,j,i){");
document.writeln("toel = getReal(window.event.toElement, \"className\", \"coolButton\");");
document.writeln("fromel = getReal(window.event.fromElement, \"className\", \"coolButton\");");
document.writeln("if (toel == fromel) return;");
document.writeln("srcel = getReal(window.event.srcElement, \"className\", \"coolButton\");");
document.writeln(" for(nummenu=1;nummenu<=mnumberofsub;nummenu++){ ");
document.writeln(" var thesub=document.getElementById(\'msubmenudiv\'+nummenu) ");
document.writeln(" if(!(menuid==thesub||menuid.style.tag>=thesub.style.tag)){");
document.writeln(" msubmenuhide(thesub);");
document.writeln(" mnochange(document.getElementById(\'mp\'+nummenu));");
document.writeln(" document.getElementById(\"mitem\"+nummenu).style.color=mfontcolor;");
document.writeln(" }");
document.writeln(" }");
document.writeln("if(item)document.getElementById(\"mitem\"+item).style.color=mmenuovercolor;");
document.writeln("if(misdown||item){");
document.writeln(" mtoin(srcel);");
document.writeln("}");
document.writeln("else{");
document.writeln(" mtoout(srcel);");
document.writeln("}");
document.writeln("if(x==-1)mthestatus=eval(\"msub\"+j).items[i].statustxt;");
document.writeln("if(j==-1)mthestatus=mmenus[x].items[i].statustxt;");
document.writeln("if(mthestatus!=\"\"){");
document.writeln(" musestatus=true;");
document.writeln(" window.status=mthestatus;");
document.writeln("}");
document.writeln("clearTimeout(mpopTimer);");
document.writeln("}");
document.writeln("function mmenuitem_out(hassub){");
document.writeln("toel = getReal(window.event.toElement, \"className\", \"coolButton\");");
document.writeln("fromel = getReal(window.event.fromElement, \"className\", \"coolButton\");");
document.writeln("if (toel == fromel) return;");
document.writeln("srcel = getReal(window.event.srcElement, \"className\", \"coolButton\");");
document.writeln("if(!hassub)mnochange(srcel);");
document.writeln("if(musestatus)window.status=\"\";");
document.writeln("mpopOut()");
document.writeln("}");
document.writeln("function mmenuitem_down(){");
document.writeln("srcel = getReal(window.event.srcElement, \"className\", \"coolButton\");");
document.writeln("mtoin(srcel)");
document.writeln("misdown=true;");
document.writeln("}");
document.writeln("function mmenuitem_up(){");
document.writeln("srcel = getReal(window.event.srcElement, \"className\", \"coolButton\");");
document.writeln("mtoout(srcel)");
document.writeln("misdown=false;");
document.writeln("}");
document.writeln("function mexec3(j,i){");
document.writeln("var cmd;");
document.writeln("if(eval(\"msub\"+j).items[i].target==\"blank\"){");
document.writeln(" cmd = \"window.open(\'\"+eval(\"msub\"+j).items[i].command+\"\')\";");
document.writeln("}else{");
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -