Coalesys.WebMenu source code(partial)(10)
2024-07-21 02:16:55
供稿:网友
writer.csf_11("}");
writer.csf_11("}");
writer.csf_11("function cswmdii(id,bgco)");
writer.csf_11("{");
writer.csf_11("if(document.getelementbyid(/"cswmicoon/"+id))");
writer.csf_11("{");
writer.csf_11("document.getelementbyid(/"cswmico/"+id).style.display=/"inline/";");
writer.csf_11("document.getelementbyid(/"cswmicoon/"+id).style.display=/"none/";");
writer.csf_11("}");
writer.csf_11("document.getelementbyid(/"cswmitem/"+id).style.color=/"");
writer.csf_11(local57);
writer.csf_11("/";");
writer.csf_11("document.getelementbyid(/"cswmexpand/"+id).style.color=/"");
writer.csf_11(local57);
writer.csf_11("/";");
writer.csf_11("if(bgco!=null)");
writer.csf_11("{");
writer.csf_11("document.getelementbyid(/"cswmitem/"+id).style.backgroundcolor=bgco;");
writer.csf_11("document.getelementbyid(/"cswmexpand/"+id).style.backgroundcolor=bgco;");
writer.csf_11("}");
writer.csf_11("else");
writer.csf_11("{");
writer.csf_11("document.getelementbyid(/"cswmitem/"+id).style.backgroundcolor=/"");
writer.csf_11(local52);
writer.csf_11("/";");
writer.csf_11("document.getelementbyid(/"cswmexpand/"+id).style.backgroundcolor=/"");
writer.csf_11(local52);
writer.csf_11("/";");
writer.csf_11("}");
writer.csf_11("if(document.getelementbyid(/"cswmexpandic/"+id))");
writer.csf_11("{");
writer.csf_11("document.getelementbyid(/"cswmexpandic/"+id).src=cswmexis;");
writer.csf_11("}");
writer.csf_11("}");
writer.csf_11("function cswmsp(id,itemid)");
writer.csf_11("{");
writer.csf_11("if(!itemid)");
writer.csf_11("{");
writer.csf_11("if(cswmfp)");
writer.csf_11("{");
writer.csf_11("cswmsel=cswmxoff;");
writer.csf_11("cswmset=cswmyoff;");
writer.csf_11("cswmseh=1;");
writer.csf_11("cswmsew=1;");
writer.csf_11("cswmfp=0;");
writer.csf_11("}");
writer.csf_11("else");
writer.csf_11("{");
writer.csf_11("cswmse=new object(document.getelementbyid(cswmsi));");
writer.csf_11("cswmsel=new number(cswmse.offsetleft+cswmxoff+document.getelementsbytagname(/"body/").item(0).offsetleft);");
writer.csf_11("cswmset=new number(cswmse.offsettop+cswmyoff+document.getelementsbytagname(/"body/").item(0).offsettop);");
writer.csf_11("cswmseh=cswmse.height;");
writer.csf_11("cswmsew=cswmse.width;");
writer.csf_11("}");
writer.csf_11("document.getelementbyid(/"cswmpopup/"+id).style.display=/"inline/";");
writer.csf_11("cswmpw=document.getelementbyid(/"cswmpopup/"+id).offsetwidth;");
writer.csf_11("cswmph=document.getelementbyid(/"cswmpopup/"+id).offsetheight;");
writer.csf_11("cswmbw=document.width;");
writer.csf_11("cswmbh=window.innerheight-15;");
if (!(local50))
writer.csf_11("cswmsla=window.pagexoffset;");
if (!(local51))
writer.csf_11("cswmsta=window.pageyoffset;");
writer.csf_11("switch(cswmspnt)");
writer.csf_11("{");
writer.csf_11("case /"above/":");
writer.csf_11("cswmpl[cswmpl.length]=cswmsel;");
writer.csf_11("cswmpt[cswmpt.length]=cswmset-cswmph;");
writer.csf_11("cswmca();");
writer.csf_11("cswmcr();");
writer.csf_11("break;");
writer.csf_11("case /"below/":");
writer.csf_11("cswmpl[cswmpl.length]=cswmsel;");
writer.csf_11("cswmpt[cswmpt.length]=cswmset+cswmseh;");
writer.csf_11("cswmcb();");
writer.csf_11("cswmcr();");
writer.csf_11("break;");
writer.csf_11("case /"right/":");
writer.csf_11("cswmpl[cswmpl.length]=cswmsel+cswmsew;");
writer.csf_11("cswmpt[cswmpt.length]=cswmset;");
writer.csf_11("cswmcr();");
writer.csf_11("cswmcb();");
writer.csf_11("break;");
writer.csf_11("case /"left/":");
writer.csf_11("cswmpl[cswmpl.length]=cswmsel-cswmpw;");
writer.csf_11("cswmpt[cswmpt.length]=cswmset;");
writer.csf_11("cswmcl();");
writer.csf_11("cswmcb();");
writer.csf_11("cswmdir=/"left/";");
writer.csf_11("break;");
writer.csf_11("}");
writer.csf_11("cswmxoff=0;");
writer.csf_11("cswmyoff=0;");
writer.csf_11("document.getelementbyid(/"cswmpopup/"+id).style.left=cswmpl[cswmpl.length-1];");
writer.csf_11("document.getelementbyid(/"cswmpopup/"+id).style.top=cswmpt[cswmpt.length-1];");
writer.csf_11("cswmpi[cswmpi.length]=id;");
writer.csf_11("}");
writer.csf_11("else");
writer.csf_11("{");
writer.csf_11("cswmpl[cswmpl.length]=document.getelementbyid(/"cswmpopup/"+cswmpi[cswmpi.length-1]).offsetwidth+cswmpl[cswmpl.length-1]-4;");
writer.csf_11("cswmpt[cswmpt.length]=document.getelementbyid(/"cswmitem/"+itemid).offsettop;");
writer.csf_11("if(navigator.vendorsub>=6.1)");
writer.csf_11("{");
writer.csf_11("cswmpt[cswmpt.length-1]+=document.getelementbyid(/"cswmitem/"+itemid).offsetparent.offsettop;");
writer.csf_11("}");
writer.csf_11("document.getelementbyid(/"cswmpopup/"+id).style.display=/"inline/";");
writer.csf_11("cswmpw=document.getelementbyid(/"cswmpopup/"+id).offsetwidth;");
writer.csf_11("cswmph=document.getelementbyid(/"cswmpopup/"+id).offsetheight;");
writer.csf_11("var cswmprw=document.getelementbyid(/"cswmpopup/"+cswmpi[cswmpi.length-1]).offsetwidth;");
writer.csf_11("cswmar=cswmbw-cswmpl[cswmpl.length-1]+cswmsla;");
writer.csf_11("cswmab=cswmbh-cswmpt[cswmpt.length - 1]+cswmsta;");
writer.csf_11("if(cswmpl[cswmpl.length-2]==cswmsla){cswmdir=/"right/";}");
writer.csf_11("if((cswmar<cswmpw)||(cswmdir==/"left/"))");
writer.csf_11("{");
writer.csf_11("cswmmb=(cswmpl[cswmpl.length-1]-cswmpw-cswmprw)+8;");
writer.csf_11("if((cswmmb>=0)&&(cswmmb>cswmsla))");
writer.csf_11("{");
writer.csf_11("cswmdir=/"left/";");
writer.csf_11("}");
writer.csf_11("else");
writer.csf_11("{");
writer.csf_11("cswmmb=cswmsla;");
writer.csf_11("}");
writer.csf_11("cswmpl[cswmpl.length-1]=cswmmb;");
writer.csf_11("}");
writer.csf_11("if(cswmab<cswmph)");
writer.csf_11("{");
writer.csf_11("cswmmb=cswmpt[cswmpt.length-1]-(cswmph-cswmab);");
writer.csf_11("if(cswmmb<0)");
writer.csf_11("{");
writer.csf_11("cswmmb=cswmsta;");
writer.csf_11("}");
writer.csf_11("cswmpt[cswmpt.length-1]=cswmmb;");
writer.csf_11("}");
writer.csf_11("document.getelementbyid(/"cswmpopup/"+id).style.left=cswmpl[cswmpl.length-1];");
writer.csf_11("document.getelementbyid(/"cswmpopup/"+id).style.top=cswmpt[cswmpt.length-1];");
writer.csf_11("cswmpi[cswmpi.length]=id;");
writer.csf_11("}");
writer.csf_11("}");
writer.csf_11("function cswmhp(level)");
writer.csf_11("{");
writer.csf_11("var count=level;");
writer.csf_11("for(count=level;count<cswmpi.length;count++)");
writer.csf_11("{");
writer.csf_11("document.getelementbyid(/"cswmpopup/"+cswmpi[count]).style.display=/"none/";");
writer.csf_11("}");
writer.csf_11("if(level==0&&cswmpi.length>0)");
writer.csf_11("{");
if (!(common.csf_0(local59))) {
writer.csf_11("var id = cswmpi[0];");
writer.csf_11(local59);
writer.csf_11(";");
}
writer.csf_11("}");
writer.csf_11("cswmpi.length=level;");
writer.csf_11("cswmpl.length=level;");
writer.csf_11("cswmpt.length=level;");
writer.csf_11("}");
writer.csf_11("function cswmcr()");
writer.csf_11("{");
writer.csf_11("cswmar=(cswmbw+cswmsla)-cswmpl[cswmpl.length-1];");
writer.csf_11("if(cswmar<cswmpw)");
writer.csf_11("{");
writer.csf_11("if(cswmspnt==/"below/"||cswmspnt==/"above/")");
writer.csf_11("{");
writer.csf_11("cswmmb=cswmpl[cswmpl.length-1]-(cswmpw-cswmar);");
writer.csf_11("if(cswmmb<0||cswmmb<cswmsla)");
writer.csf_11("{");
writer.csf_11("cswmmb=cswmsla;");
writer.csf_11("}");
writer.csf_11("cswmpl[cswmpl.length-1]=cswmmb;");
writer.csf_11("}");
writer.csf_11("else");
writer.csf_11("{");
writer.csf_11("cswmmb=cswmsel-cswmpw;");
writer.csf_11("if(cswmmb>=0)");
writer.csf_11("{");
writer.csf_11("cswmpl[cswmpl.length-1]=cswmmb;");
writer.csf_11("}");
writer.csf_11("}");
writer.csf_11("}");
writer.csf_11("}");
writer.csf_11("function cswmcl()");
writer.csf_11("{");
writer.csf_11("if(cswmpl[cswmpl.length-1]<(cswmsla))");
writer.csf_11("{");
writer.csf_11("cswmpl[cswmpl.length-1]=cswmsel+cswmsew;");
writer.csf_11("cswmcr();");
writer.csf_11("}");
writer.csf_11("}");
writer.csf_11("function cswmcb()");
writer.csf_11("{");
writer.csf_11("cswmab=(cswmbh+cswmsta)-cswmpt[cswmpt.length-1];");
writer.csf_11("if(cswmab<cswmph)");
writer.csf_11("{");
writer.csf_11("if(cswmspnt==/"below/")");
writer.csf_11("{");
writer.csf_11("cswmmb=cswmpt[cswmpt.length-1]-cswmph-cswmseh;");
writer.csf_11("if(cswmmb>=0)");
writer.csf_11("{");
writer.csf_11("cswmpt[cswmpt.length-1]=cswmmb;");
writer.csf_11("}");
writer.csf_11("}");
writer.csf_11("else");
writer.csf_11("{");
writer.csf_11("cswmmb=cswmpt[cswmpt.length-1]-(cswmph-cswmab);");
writer.csf_11("if(cswmmb<0||cswmmb<cswmsta)");
writer.csf_11("{");
writer.csf_11("cswmmb=cswmsta;");
writer.csf_11("}");
writer.csf_11("cswmpt[cswmpt.length-1]=cswmmb;");
writer.csf_11("}");
writer.csf_11("}");
writer.csf_11("}");
writer.csf_11("function cswmca()");
writer.csf_11("{");
writer.csf_11("if(cswmpt[cswmpt.length-1]<(cswmsta))");
writer.csf_11("{");
writer.csf_11("cswmpt[cswmpt.length-1]=cswmset+cswmseh;");
writer.csf_11("cswmcb();");
writer.csf_11("}");
writer.csf_11("}");
writer.csf_11("function cswmshowinframe(menuid,x,y)");
writer.csf_11("{");
writer.csf_11("x+=window.pagexoffset;");
writer.csf_11("y+=window.pageyoffset;");
writer.csf_11("cswmshow(menuid,'','below',x,y,1);");
writer.csf_11("}");
writer.csf_11("function cswmhideselectbox()");
writer.csf_11("{");
writer.csf_11("}");
writer.csf_11("function cswmrefresh()");
writer.csf_11("{");
writer.csf_11("}/r/n");
writer.csf_11("//-->/r/n");
}
return;
break;
}
break;
}
}