Coalesys.WebMenu source code(partial)(5)
2024-07-21 02:16:58
供稿:网友
writer.csf_11("{");
writer.csf_11("if(ms!=/"off/")");
writer.csf_11("{");
writer.csf_11("if(cswmcth==0)");
writer.csf_11("{");
writer.csf_11("cswmti=settimeout(/"cswmhp(0);cswmclkd=-1/",ms);");
writer.csf_11("}");
writer.csf_11("}");
writer.csf_11("else");
writer.csf_11("{");
writer.csf_11("cleartimeout(cswmti);");
writer.csf_11("}");
writer.csf_11("}");
writer.csf_11("function cswmshow(id,srcid,relpos,offsetx,offsety,fixedpos)");
writer.csf_11("{");
writer.csf_11("cleartimeout(cswmti);");
writer.csf_11("if(cswmclkd!=id)");
writer.csf_11("{");
writer.csf_11("cswmhp(0);");
writer.csf_11("cswmsi=srcid;");
writer.csf_11("cswmspnt=relpos;");
writer.csf_11("cswmclkd=id;");
writer.csf_11("cswmdir=/"right/";");
writer.csf_11("if(eval(cswmom+/"cswmpopup/"+id))");
writer.csf_11("{");
writer.csf_11("if(offsetx)cswmxoff=offsetx;");
writer.csf_11("if(offsety)cswmyoff=offsety;");
writer.csf_11("if(fixedpos)cswmfp=fixedpos;");
writer.csf_11("cswmsp(id);");
if (!(common.csf_0(local31))) {
writer.csf_11(local31);
writer.csf_11(";");
}
writer.csf_11("}");
writer.csf_11("}");
writer.csf_11("}");
writer.csf_11("function cswmhide()");
writer.csf_11("{");
writer.csf_11("cswmti=settimeout(/"cswmhp(0);cswmclkd=-1/",");
writer.csf_11(local21);
writer.csf_11(");");
writer.csf_11("}");
writer.csf_11("function cswmhii(id,bgco)");
writer.csf_11("{");
writer.csf_11("eval(cswmom+/"cswmitem/"+id+cswmco+/"=///"");
writer.csf_11(local27);
writer.csf_11("///"/");");
writer.csf_11("eval(cswmom+/"cswmexpand/"+id+cswmco+/"=///"");
writer.csf_11(local27);
writer.csf_11("///"/");");
writer.csf_11("if(bgco!=null)");
writer.csf_11("{");
writer.csf_11("eval(cswmom+/"cswmitem/"+id+cswmbgco+/"=///"/"+bgco+/"///"/");");
writer.csf_11("eval(cswmom+/"cswmexpand/"+id+cswmbgco+/"=///"/"+bgco+/"///"/");");
writer.csf_11("}");
writer.csf_11("else");
writer.csf_11("{");
writer.csf_11("eval(cswmom+/"cswmitem/"+id+cswmbgco+/"=///"");
writer.csf_11(local26);
writer.csf_11("///"/");");
writer.csf_11("eval(cswmom+/"cswmexpand/"+id+cswmbgco+/"=///"");
writer.csf_11(local26);
writer.csf_11("///"/");");
writer.csf_11("}");
writer.csf_11("if(eval(cswmom+/"cswmexpandic/"+id))");
writer.csf_11("{");
writer.csf_11("eval(cswmom+/"cswmexpandic/"+id+/".src=cswmexdis/");");
writer.csf_11("}");
writer.csf_11("}");
writer.csf_11("function cswmdii(id, bgco)");
writer.csf_11("{");
writer.csf_11("eval(cswmom+/"cswmitem/"+id+cswmco+/"=///"");
writer.csf_11(local30);
writer.csf_11("///"/");");
writer.csf_11("eval(cswmom+/"cswmexpand/"+id+cswmco+/"=///"");
writer.csf_11(local30);
writer.csf_11("///"/");");
writer.csf_11("if(bgco!=null)");
writer.csf_11("{");
writer.csf_11("eval(cswmom+/"cswmitem/"+id+cswmbgco+/"=///"/"+bgco+/"///"/");");
writer.csf_11("eval(cswmom+/"cswmexpand/"+id+cswmbgco+/"=///"/"+bgco+/"///"/");");
writer.csf_11("}");
writer.csf_11("else");
writer.csf_11("{");
writer.csf_11("eval(cswmom+/"cswmitem/"+id+cswmbgco+/"=///"");
writer.csf_11(local25);
writer.csf_11("///"/");");
writer.csf_11("eval(cswmom+/"cswmexpand/"+id+cswmbgco+/"=///"");
writer.csf_11(local25);
writer.csf_11("///"/");");
writer.csf_11("}");
writer.csf_11("if(eval(cswmom+/"cswmexpandic/"+id))");
writer.csf_11("{");
writer.csf_11("eval(cswmom+/"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(eval(cswmom+cswmsi));");
writer.csf_11("var cswmpro=cswmse;");
writer.csf_11("var cswmprt=/"/";");
writer.csf_11("cswmsel=cswmse.offsetleft+cswmxoff;");
writer.csf_11("cswmset=cswmse.offsettop+cswmyoff;");
writer.csf_11("cswmseh=cswmse.offsetheight;");
writer.csf_11("cswmsew=cswmse.offsetwidth;");
writer.csf_11("while(cswmprt!=/"body/")");
writer.csf_11("{");
writer.csf_11("cswmpro=cswmpro.offsetparent;");
writer.csf_11("cswmsel+=cswmpro.offsetleft;");
writer.csf_11("cswmset+=cswmpro.offsettop;");
writer.csf_11("cswmprt=cswmpro.tagname;");
writer.csf_11("}");
writer.csf_11("}");
writer.csf_11("eval(cswmom+/"cswmpopup/"+id+/".style.width=1/");");
writer.csf_11("eval(cswmom+/"cswmpopup/"+id+/".style.height=1/");");
writer.csf_11("eval(cswmom+/"cswmpopup/"+id+cswmdi+/"=///"block///"/");");
writer.csf_11("cswmpw=eval(cswmom+/"cswmpopup/"+id+/".clientwidth/");");
writer.csf_11("cswmph=eval(cswmom+/"cswmpopup/"+id+/".clientheight/");");
writer.csf_11("cswmbw=document.body.clientwidth;");
writer.csf_11("cswmbh=document.body.clientheight;");
if (!(local23))
writer.csf_11("cswmsla=document.body.scrollleft;");
if (!(local24))
writer.csf_11("cswmsta=document.body.scrolltop;");
writer.csf_11("switch(cswmspnt)");
writer.csf_11("{");
writer.csf_11("case /"above/":");
writer.csf_11("cswmpx[cswmpx.length]=cswmsel;");
writer.csf_11("cswmpy[cswmpy.length]=cswmset-cswmph;");
writer.csf_11("cswmca();");
writer.csf_11("cswmcr();");
writer.csf_11("break;");
writer.csf_11("case /"below/":");
writer.csf_11("cswmpx[cswmpx.length]=cswmsel;");
writer.csf_11("cswmpy[cswmpy.length]=cswmset+cswmseh;");
writer.csf_11("cswmcb();");
writer.csf_11("cswmcr();");
writer.csf_11("break;");
writer.csf_11("case /"right/":");
writer.csf_11("cswmpx[cswmpx.length]=cswmsel+cswmsew;");
writer.csf_11("cswmpy[cswmpy.length]=cswmset;");
writer.csf_11("cswmcr();");
writer.csf_11("cswmcb();");
writer.csf_11("break;");
writer.csf_11("case /"left/":");
writer.csf_11("cswmpx[cswmpx.length]=cswmsel-cswmpw;");
writer.csf_11("cswmpy[cswmpy.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("eval(cswmom+/"cswmpopup/"+id+/".style.left=cswmpx[cswmpx.length-1]/");");
writer.csf_11("eval(cswmom+/"cswmpopup/"+id+/".style.top=cswmpy[cswmpy.length-1]/");");