Coalesys.WebMenu source code(partial)(4)

80酷酷网    80kuku.com

  webwriter.CSF_11("cswmSA=false;");
                            writer.CSF_11("}");
                            writer.CSF_11("break;");
                            writer.CSF_11("case \"left\":");
                            writer.CSF_11("if(level>=0)");
                            writer.CSF_11("{");
                            writer.CSF_11("cswmPR.style.clip=\"rect(0 \" + cswmPW + \" \" + (cswmPH - level) + \" \" + level + \")\";");
                            writer.CSF_11("setTimeout(\"cswmScI(cswmTL-cswmSS);\",50);");
                            writer.CSF_11("}");
                            writer.CSF_11("else");
                            writer.CSF_11("{");
                            writer.CSF_11("cswmPR.style.clip=\"rect(0 \" + cswmPW + \" \" + cswmPH + \" 0)\";");
                            writer.CSF_11("cswmSA=false;");
                            writer.CSF_11("}");
                            writer.CSF_11("break;");
                            writer.CSF_11("case \"below\":");
                            writer.CSF_11("case \"right\":");
                            writer.CSF_11("if(level>=0)");
                            writer.CSF_11("{");
                            writer.CSF_11("cswmPR.style.clip=\"rect(0 \" + (cswmPW - level) + \" \" + (cswmPH - level) + \" 0)\";");
                            writer.CSF_11("setTimeout(\"cswmScI(cswmTL-cswmSS);\",50);");
                            writer.CSF_11("}");
                            writer.CSF_11("else");
                            writer.CSF_11("{");
                            writer.CSF_11("cswmPR.style.clip=\"rect(0 \" + cswmPW + \" \" + cswmPH + \" 0)\";");
                            writer.CSF_11("cswmSA=false;");
                            writer.CSF_11("}");
                            writer.CSF_11("break;");
                            writer.CSF_11("}");
                            writer.CSF_11("}");
                        break;
                    }
                    if (local10) {
                        writer.CSF_11("function cswmMS(id)");
                        writer.CSF_11("{");
                        writer.CSF_11("var rt;");
                        writer.CSF_11("var rs;");
                        writer.CSF_11("var i;");
                        writer.CSF_11("for (i=0;i<4;i++)");
                        writer.CSF_11("{");
                        writer.CSF_11("rt=document.createElement(\"div\");");
                        writer.CSF_11("rs=rt.style;");
                        writer.CSF_11("rs.position=\"absolute\";");
                        writer.CSF_11("rs.left=cswmPx[cswmPx.length-1]+(");
                        writer.CSF_11(local4);
                        writer.CSF_11(")+i;");
                        writer.CSF_11("rs.top=cswmPy[cswmPy.length-1]+(");
                        writer.CSF_11(local5);
                        writer.CSF_11(")+i;");
                        writer.CSF_11("rs.width=cswmPW-(i*2);");
                        writer.CSF_11("rs.height=cswmPH-(i*2);");
                        writer.CSF_11("rs.backgroundColor=\"");
                        writer.CSF_11(local17);
                        writer.CSF_11("\";");
                        writer.CSF_11("rs.filter=\"progid:DXImageTransform.Microsoft.Alpha( cswmDS(level)");
                        writer.CSF_11("{");
                        writer.CSF_11("var i;");
                        writer.CSF_11("var Keep=level*4;");
                        writer.CSF_11("for(i=Keep;i<cswmSdw.length;i++)");
                        writer.CSF_11("{");
                        writer.CSF_11("cswmSdw[i].removeNode(true);");
                        writer.CSF_11("}");
                        writer.CSF_11("cswmSdw.length=Keep;");
                        writer.CSF_11("}");
                    }
                    writer.CSF_11("function cswmShowInFrame(MenuID,x,y)");
                    writer.CSF_11("{");
                    writer.CSF_11("x+=document.body.scrollLeft;");
                    writer.CSF_11("y+=document.body.scrollTop;");
                    writer.CSF_11("cswmShow(MenuID,'','below',x,y,1);");
                    writer.CSF_11("}");
                    writer.CSF_11("function cswmRefresh()");
                    writer.CSF_11("{");
                    writer.CSF_11("}");
                    writer.CSF_11("\r\n//-->\r\n");
                    return;
                    i0: if (type == 1) {
                        local25 = webmenu.BackgroundColor;
                        local26 = webmenu.SelectedColor;
                        local27 = webmenu.SelectedTextColor;
                        local28 = webmenu.PopupIcon;
                        local29 = webmenu.SelectedPopupIcon;
                        local21 = webmenu.HideTimer;
                        local22 = webmenu.HideOnClick;
                        local23 = webmenu.IgnoreHorzScroll;
                        local24 = webmenu.IgnoreVertScroll;
                        local31 = webmenu.OnShow;
                        local32 = webmenu.OnHide;
                        local20 = webmenu.ItemFont;
                        local30 = local20.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 IE4 DHTML script\r\n");
                            writer.CSF_11("// COPYRIGHT 2001 Coalesys, Inc.\r\n");
                            writer.CSF_11("/////////////////////////////////////////////////\r\n");
                        }
                        writer.CSF_11("var cswmOM=\"document.all.\";");
                        writer.CSF_11("var cswmBgCo=\".style.backgroundColor\";");
                        writer.CSF_11("var cswmCo=\".style.color\";");
                        writer.CSF_11("var cswmDi=\".style.display\";");
                        writer.CSF_11("var cswmTI=\"\";");
                        writer.CSF_11("var cswmClkd=-1;");
                        writer.CSF_11("var cswmPI=new Array();");
                        writer.CSF_11("var cswmPx=new Array();");
                        writer.CSF_11("var cswmPy=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(local28);
                        writer.CSF_11("\";");
                        writer.CSF_11("var cswmExdIS=\"");
                        writer.CSF_11(local29);
                        writer.CSF_11("\";");
                        writer.CSF_11("var cswmCTH=");
                        if (local22)
                            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 (local22) {
                            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)");
                        

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