Coalesys.WebMenu source code(partial)(9)

80酷酷网    80kuku.com

  webwriter.CSF_11("while(cswmCIO)");
                        writer.CSF_11("{");
                        writer.CSF_11("var cswmLI=cswmCIO.id;");
                        writer.CSF_11("if(cswmLI.indexOf(\"Item\")>-1)");
                        writer.CSF_11("{");
                        writer.CSF_11("if(cswmCIO.document.layers.length)");
                        writer.CSF_11("{");
                        writer.CSF_11("cswmC=1;");
                        writer.CSF_11("}");
                        writer.CSF_11("if(cswmHS==0)");
                        writer.CSF_11("{");
                        writer.CSF_11("cswmCIO.clip.height=cswmCIO.clip.height+cswmBP;");
                        writer.CSF_11("}");
                        writer.CSF_11("if(cswmCIO.clip.width>(cswmIW-cswmRP))");
                        writer.CSF_11("{");
                        writer.CSF_11("if(cswmHS==0)");
                        writer.CSF_11("{");
                        writer.CSF_11("cswmIW=cswmCIO.clip.width+cswmRP;");
                        writer.CSF_11("}");
                        writer.CSF_11("else");
                        writer.CSF_11("{");
                        writer.CSF_11("cswmIW=cswmCIO.clip.width;");
                        writer.CSF_11("}");
                        writer.CSF_11("}");
                        writer.CSF_11("cswmCIO.top=cswmTP;");
                        writer.CSF_11("cswmTP+=cswmCIO.clip.height;");
                        writer.CSF_11("cswmCIO.left=cswmBS;");
                        writer.CSF_11("cswmCIO=cswmCIO.siblingAbove;");
                        writer.CSF_11("var cswmCount=0;");
                        writer.CSF_11("for(cswmCount=0;cswmCount<2;cswmCount++)");
                        writer.CSF_11("{");
                        writer.CSF_11("cswmCIO.top=cswmCIO.siblingBelow.top;");
                        writer.CSF_11("cswmCIO.left=cswmBS;");
                        writer.CSF_11("cswmCIO.clip.height=cswmCIO.siblingBelow.clip.height;");
                        writer.CSF_11("cswmCIO=cswmCIO.siblingAbove;");
                        writer.CSF_11("}");
                        writer.CSF_11("}");
                        writer.CSF_11("else if(cswmLI.indexOf(\"Divider\")>-1)");
                        writer.CSF_11("{");
                        writer.CSF_11("cswmCIO.top=cswmTP;");
                        writer.CSF_11("cswmCIO.left=cswmBS;");
                        writer.CSF_11("cswmTP+=cswmCIO.clip.height;");
                        writer.CSF_11("cswmCIO=cswmCIO.siblingAbove;");
                        writer.CSF_11("}");
                        writer.CSF_11("else");
                        writer.CSF_11("{");
                        writer.CSF_11("break;");
                        writer.CSF_11("}");
                        writer.CSF_11("}");
                        writer.CSF_11("cswmCIO=cswmP.above;");
                        writer.CSF_11("while(cswmCIO)");
                        writer.CSF_11("{");
                        writer.CSF_11("if(cswmLI.indexOf(\"Divider\")>-1)");
                        writer.CSF_11("{");
                        writer.CSF_11("if(cswmCIO.clip.width>cswmIW)");
                        writer.CSF_11("{");
                        writer.CSF_11("cswmIW=cswmCIO.clip.width;");
                        writer.CSF_11("if(cswmC && !cswmHS)");
                        writer.CSF_11("{");
                        writer.CSF_11("cswmIW-=15;");
                        writer.CSF_11("}");
                        writer.CSF_11("}");
                        writer.CSF_11("cswmCIO=cswmCIO.siblingAbove;");
                        writer.CSF_11("}");
                        writer.CSF_11("else if(cswmLI.indexOf(\"Item\")>-1)");
                        writer.CSF_11("{");
                        writer.CSF_11("cswmCIO=cswmCIO.siblingAbove;");
                        writer.CSF_11("}");
                        writer.CSF_11("else");
                        writer.CSF_11("{");
                        writer.CSF_11("break;");
                        writer.CSF_11("}");
                        writer.CSF_11("}");
                        writer.CSF_11("if(cswmC && !cswmHS)");
                        writer.CSF_11("{");
                        writer.CSF_11("cswmIW+=15;");
                        writer.CSF_11("cswmCIO=cswmP.above;");
                        writer.CSF_11("while(cswmCIO)");
                        writer.CSF_11("{");
                        writer.CSF_11("if(cswmCIO.document.layers.length)");
                        writer.CSF_11("{");
                        writer.CSF_11("cswmCIO.above.left=cswmIW-15;");
                        writer.CSF_11("cswmCIO.above.top=(cswmCIO.clip.height/2)-5;");
                        writer.CSF_11("}");
                        writer.CSF_11("cswmCIO=cswmCIO.siblingAbove;");
                        writer.CSF_11("}");
                        writer.CSF_11("}");
                        writer.CSF_11("cswmPH=cswmTP+cswmBS;");
                        writer.CSF_11("cswmPW=cswmIW+(cswmBS*2);");
                        writer.CSF_11("cswmP.clip.height=cswmPH;");
                        writer.CSF_11("cswmP.clip.width=cswmPW;");
                        writer.CSF_11("cswmCIO=cswmP.above;");
                        writer.CSF_11("while(cswmCIO)");
                        writer.CSF_11("{");
                        writer.CSF_11("var cswmLI=cswmCIO.id;");
                        writer.CSF_11("if(cswmLI.indexOf(\"cswm\")>-1)");
                        writer.CSF_11("{");
                        writer.CSF_11("cswmCIO.clip.width=cswmIW;");
                        writer.CSF_11("cswmCIO=cswmCIO.siblingAbove;");
                        writer.CSF_11("}");
                        writer.CSF_11("else");
                        writer.CSF_11("{");
                        writer.CSF_11("break;");
                        writer.CSF_11("}");
                        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("if(cswmWinX!=window.outerWidth||cswmWinY!=window.outerHeight)");
                        writer.CSF_11("{");
                        writer.CSF_11("location.reload()");
                        writer.CSF_11("}");
                        writer.CSF_11("}\r\n");
                        writer.CSF_11("//-->\r\n");
                        return;
                    }
                    if (type == 4) {
                        local52 = webmenu.BackgroundColor;
                        local53 = webmenu.SelectedColor;
                        local54 = webmenu.SelectedTextColor;
                        local55 = webmenu.PopupIcon;
                        local56 = webmenu.SelectedPopupIcon;
                        local48 = webmenu.HideTimer;
                        local49 = webmenu.HideOnClick;
                        local50 = webmenu.IgnoreHorzScroll;
                        local51 = webmenu.IgnoreVertScroll;
                        local58 = webmenu.OnShow;
                        local59 = webmenu.OnHide;
                        local47 = webmenu.ItemFont;
                        local57 = local47.Color;
                        writer.CSF_11("\r\n<!--\r\n");
                        if (!(webmenu.CSF_8())) {
                            writer.CSF_11("/////////////////////////////////////////////////\r\n");
                            writer.CSF_11("// Coalesys WebMenu for ASP.NET NN6 DHTML script\r\n");
                            writer.CSF_11("// COPYRIGHT 2001 Coalesys, Inc.\r\n");
                            writer.CSF_11("/////////////////////////////////////////////////\r\n");
                        }
                        writer.CSF_11("var cswmTI=\"\";");
                        writer.CSF_11("var cswmClkd=-1;");
                        writer.CSF_11("var cswmPI=new Array();");
                        writer.CSF_11("var cswmPL=new Array();");
                        writer.CSF_11("var cswmPT=new Array();");
                        writer.CSF_11("var cswmPW=0;");
                        writer.CSF_11("var cswmPH=0;");
                        writer.CSF_11("var cswmSPnt=\"\";");
                        writer.CSF_11("var cswmDir=\"\";");
                        writer.CSF_11("var cswmMB=0;");
                        writer.CSF_11("var cswmSI=\"\";");
                        writer.CSF_11("var cswmSE=new Object();");
                        writer.CSF_11("var cswmSEL=0;");
                        writer.CSF_11("var cswmSET=0;");
                        writer.CSF_11("var cswmSEH=0;");
                        writer.CSF_11("var cswmSEW=0;");
                        writer.CSF_11("var cswmBW=0;");
                        writer.CSF_11("var cswmBH=0;");
                        writer.CSF_11("var cswmAR=0;");
                        writer.CSF_11("var cswmAB=0;");
                        writer.CSF_11("var cswmSLA=0;");
                        writer.CSF_11("var cswmSTA=0;");
                        writer.CSF_11("var cswmExIS=\"");
                        writer.CSF_11(local55);
                        writer.CSF_11("\";");
                        writer.CSF_11("var cswmExdIS=\"");
                        writer.CSF_11(local56);
                        writer.CSF_11("\";");
                        writer.CSF_11("var cswmCTH=");
                        if (local49)
                            writer.CSF_11(-1);
                        else
                            writer.CSF_11(0);
                        writer.CSF_11(";");
                        writer.CSF_11("var cswmXOff=0;");
                        writer.CSF_11("var cswmYOff=0;");
                        writer.CSF_11("var cswmFP=0;");
                        if (local49) {
                            writer.CSF_11("document.onclick=cswmEV;");
                            writer.CSF_11("function cswmEV()");
                            writer.CSF_11("{");
                            writer.CSF_11("if(cswmClkd!=-1)");
                            writer.CSF_11("{");
                            writer.CSF_11("cswmHP(0);");
                            writer.CSF_11("cswmDir=\"right\";");
                            writer.CSF_11("cswmClkd=-1;");
                            writer.CSF_11("}");
                            writer.CSF_11("}");
                        }
                        writer.CSF_11("function cswmT(ms)");
                        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(document.getElementById(\"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(local58))) {
                            writer.CSF_11(local58);
                            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(local48);
                        writer.CSF_11(");");
                        writer.CSF_11("}");
                        writer.CSF_11("function cswmHiI(id,bgco)");
                        writer.CSF_11("{");
                        writer.CSF_11("if(document.getElementById(\"cswmIcoOn\"+id))");
                        writer.CSF_11("{");
                        writer.CSF_11("document.getElementById(\"cswmIcoOn\"+id).style.display=\"inline\";");
                        writer.CSF_11("document.getElementById(\"cswmIco\"+id).style.display=\"none\";");
                        writer.CSF_11("}");
                        writer.CSF_11("document.getElementById(\"cswmItem\"+id).style.color=\"");
                        writer.CSF_11(local54);
                        writer.CSF_11("\";");
                        writer.CSF_11("document.getElementById(\"cswmExpand\"+id).style.color=\"");
                        writer.CSF_11(local54);
                        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(local53);
                        writer.CSF_11("\";");
                        writer.CSF_11("document.getElementById(\"cswmExpand\"+id).style.backgroundColor=\"");
                        writer.CSF_11(local53);
                        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=cswmExdIS;");
                        

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