}
function mallhide(){
for(var nummenu=0;nummenu<mmenus.length;nummenu ){
var themenu=document.all['mMenu' nummenu]
var themenudiv=document.all['mmenudiv' nummenu]
mnochange(themenu);
mmenuhide(themenudiv);
}
for(nummenu=1;nummenu<=mnumberofsub;nummenu ){
var thesub=document.all['msubmenudiv' nummenu]
msubmenuhide(thesub);
mnochange(document.all['mp' nummenu]);
document.all["mitem" nummenu].style.color=mfontcolor;
}
}
function mmenuhide(menuid){
menuid.style.filter='Alpha(Opacity=100)';
hideSwipe(menuid);
misShow=false;
}
function msubmenuhide(menuid){
menuid.style.filter='Alpha(Opacity=100)';
menuid.style.visibility='hidden';
}
function mmenushow(menuid,pid){
menuid.style.filter='Alpha(Opacity=80)';
menuid.style.left=mposflag.offsetLeft pid.offsetLeft mmenuadjust;menuid.style.top=
mposflag.offsetTop mmenutable.offsetHeight mmenuadjustV;
if(mmenuitemwidth parseInt(menuid.style.left)>document.body.clientWidth document.body.scrollLeft)
menuid.style.left=document.body.clientWidth document.body.scrollLeft-mmenuitemwidth;
mtmpleft=menuid.style.left;mtmptop=menuid.style.top;swipe(menuid,2,4);
misShow=true;
}
function mshowsubmenu(menuid,pid,rid){
menuid.style.filter='Alpha(Opacity=80)';
menuid.style.left=pid.offsetWidth rid.offsetLeft;
menuid.style.top=pid.offsetTop rid.offsetTop-3;
if(mmenuitemwidth parseInt(menuid.style.left)>document.body.clientWidth document.body.scrollLeft)
menuid.style.left=document.body.clientWidth document.body.scrollLeft-mmenuitemwidth;
menuid.style.visibility='visible';
}
function mmenu_over(menuid,x){
toel = getReal(window.event.toElement, "className", "coolButton");
fromel = getReal(window.event.fromElement, "className", "coolButton");
if (toel == fromel) return;
if(x<0){
misShow = false;
mallhide();
mtoout(eval("mMenu" x));
}else{
mallhide();
mtoin(eval("mMenu" x));
mmenushow(menuid,eval("mMenu" x));
}
clearTimeout(mpopTimer);
}
function mmenu_out(x){
toel = getReal(window.event.toElement, "className", "coolButton");
fromel = getReal(window.event.fromElement, "className", "coolButton");
if (toel == fromel) return;
if (misShow){
mtoin(eval("mMenu" x));
}else{
mnochange(eval("mMenu" x));
}
mpopOut()
}
function mmenu_down(menuid,x){
if(misShow){
mmenuhide(menuid);
mtoout(eval("mMenu" x));
}
else{
mtoin(eval("mMenu" x));
mmenushow(menuid,eval("mMenu" x));
misdown=true;
}
}
function mmenu_up(){
misdown=false;
}
function mmenuitem_over(menuid,item,x,j,i){
评论加载中…
![]() |