Coalesys.WebMenu source code(partial)(8)

80酷酷网    80kuku.com

  webwriter.CSF_11("else");
                        writer.CSF_11("{");
                        writer.CSF_11("cswmPL[cswmPL.length]=eval(\"document.cswmPopup\"+cswmPI[cswmPI.length-1]+\".clip.width\")+cswmPL[cswmPL.length-1]-4;");
                        writer.CSF_11("cswmPT[cswmPT.length]=eval(\"document.cswmPopup\"+cswmPI[cswmPI.length-1]+\".document.cswmItem\"+itemid+\".top\")+cswmPT[cswmPT.length-1];");
                        writer.CSF_11("cswmRenP();");
                        writer.CSF_11("var cswmPrW = eval(\"document.cswmPopup\"+cswmPI[cswmPI.length-1]+\".clip.width\");");
                        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("}");
                        writer.CSF_11("cswmP.pageX=cswmPL[cswmPL.length-1];");
                        writer.CSF_11("cswmP.pageY=cswmPT[cswmPT.length-1];");
                        writer.CSF_11("if(cswmHS==0)");
                        writer.CSF_11("{");
                        writer.CSF_11("if(cswmBS!=0)");
                        writer.CSF_11("{");
                        writer.CSF_11("cswmMBrd(id);");
                        writer.CSF_11("}");
                        writer.CSF_11("}");
                        writer.CSF_11("if(cswmHS==0);");
                        writer.CSF_11("{");
                        writer.CSF_11("cswmPS.push(id);");
                        writer.CSF_11("}");
                        writer.CSF_11("cswmPI[cswmPI.length]=id;");
                        writer.CSF_11("cswmIW=0;");
                        writer.CSF_11("cswmP.visibility=\"show\";");
                        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("eval(\"document.cswmPopup\"+cswmPI[count]+\".visibility=\\\"hidden\\\"\");");
                        writer.CSF_11("}");
                        writer.CSF_11("if(level==0&&cswmPI.length>0)");
                        writer.CSF_11("{");
                        if (!(Common.CSF_0(local46))) {
                            writer.CSF_11("var id = cswmPI[0];");
                            writer.CSF_11(local46);
                            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 cswmMBrd(id)");
                        writer.CSF_11("{");
                        writer.CSF_11("var cswmIT=new Layer(1,cswmP);");
                        writer.CSF_11("var cswmIR=new Layer(1,cswmP);");
                        writer.CSF_11("var cswmIL=new Layer(1,cswmP);");
                        writer.CSF_11("var cswmIB=new Layer(1,cswmP);");
                        writer.CSF_11("cswmIT.bgColor=\"");
                        writer.CSF_11(local44);
                        writer.CSF_11("\";");
                        writer.CSF_11("cswmIT.left=cswmBS-1;");
                        writer.CSF_11("cswmIT.top=cswmBS-1;");
                        writer.CSF_11("cswmIT.clip.width=cswmIW+1;");
                        writer.CSF_11("cswmIT.clip.height=1;");
                        writer.CSF_11("cswmIT.visibility=\"inherit\";");
                        writer.CSF_11("cswmIR.bgColor=\"");
                        writer.CSF_11(local43);
                        writer.CSF_11("\";");
                        writer.CSF_11("cswmIR.left=cswmIW+cswmBS;");
                        writer.CSF_11("cswmIR.top=cswmBS-1;");
                        writer.CSF_11("cswmIR.clip.width=1;");
                        writer.CSF_11("cswmIR.clip.height=cswmPH;");
                        writer.CSF_11("cswmIR.visibility=\"inherit\";");
                        writer.CSF_11("cswmIL.bgColor=\"");
                        writer.CSF_11(local44);
                        writer.CSF_11("\";");
                        writer.CSF_11("cswmIL.left=cswmBS-1;");
                        writer.CSF_11("cswmIL.top=cswmBS;");
                        writer.CSF_11("cswmIL.clip.width=1;");
                        writer.CSF_11("cswmIL.clip.height=cswmPH-cswmBS;");
                        writer.CSF_11("cswmIL.visibility=\"inherit\";");
                        writer.CSF_11("cswmIB.bgColor=\"");
                        writer.CSF_11(local43);
                        writer.CSF_11("\";");
                        writer.CSF_11("cswmIB.left=cswmBS-1;");
                        writer.CSF_11("cswmIB.top=cswmPH-cswmBS;");
                        writer.CSF_11("cswmIB.clip.width=cswmIW+1;");
                        writer.CSF_11("cswmIB.clip.height=1;");
                        writer.CSF_11("cswmIB.visibility=\"inherit\";");
                        writer.CSF_11("if(cswmBS==2)");
                        writer.CSF_11("{");
                        writer.CSF_11("var cswmOT=new Layer(1,cswmP);");
                        writer.CSF_11("var cswmOR=new Layer(1,cswmP);");
                        writer.CSF_11("var cswmOB=new Layer(1,cswmP);");
                        writer.CSF_11("var cswmOL=new Layer(1,cswmP);");
                        writer.CSF_11("cswmOT.bgColor=\"");
                        writer.CSF_11(local42);
                        writer.CSF_11("\";");
                        writer.CSF_11("cswmOT.left=0;");
                        writer.CSF_11("cswmOT.top=0;");
                        writer.CSF_11("cswmOT.clip.width=cswmIW+3;");
                        writer.CSF_11("cswmOT.clip.height=1;");
                        writer.CSF_11("cswmOT.visibility=\"inherit\";");
                        writer.CSF_11("cswmOR.bgColor=\"");
                        writer.CSF_11(local41);
                        writer.CSF_11("\";");
                        writer.CSF_11("cswmOR.left=cswmIW+3;");
                        writer.CSF_11("cswmOR.top=0;");
                        writer.CSF_11("cswmOR.clip.width=1;");
                        writer.CSF_11("cswmOR.clip.height=cswmPH;");
                        writer.CSF_11("cswmOR.visibility=\"inherit\";");
                        writer.CSF_11("cswmOB.bgColor=\"");
                        writer.CSF_11(local41);
                        writer.CSF_11("\";");
                        writer.CSF_11("cswmOB.left=0;");
                        writer.CSF_11("cswmOB.top=cswmPH-1;");
                        writer.CSF_11("cswmOB.clip.width=cswmIW+3;");
                        writer.CSF_11("cswmOB.clip.height=1;");
                        writer.CSF_11("cswmOB.visibility=\"inherit\";");
                        writer.CSF_11("cswmOL.bgColor=\"");
                        writer.CSF_11(local42);
                        writer.CSF_11("\";");
                        writer.CSF_11("cswmOL.left=0;");
                        writer.CSF_11("cswmOL.top=1;");
                        writer.CSF_11("cswmOL.clip.width=1;");
                        writer.CSF_11("cswmOL.clip.height=cswmPH-2;");
                        writer.CSF_11("cswmOL.visibility=\"inherit\";");
                        writer.CSF_11("}");
                        writer.CSF_11("}");
                        writer.CSF_11("function cswmRenP()");
                        writer.CSF_11("{");
                        writer.CSF_11("var cswmCIO=cswmP.above;");
                        writer.CSF_11("var cswmTP=new Number(cswmBS);");
                        

分享到
  • 微信分享
  • 新浪微博
  • QQ好友
  • QQ空间
点击: