首页 > 开发 > 综合 > 正文

Coalesys.WebMenu source code(partial)(1)

2024-07-21 02:16:55
字体:
来源:转载
供稿:网友
i post this source code in order to test our il2c#, this source code was generated by our software, this is the  "javascript" method of class coalesys.webmenu.generate

internal static void javascript(webmenu webmenu, generateconstants type, writer writer) {
    font local0;
    effectconstants local1;
    int local2;
    int local3;
    int local4;
    int local5;
    bool local6;
    bool local7;
    bool local8;
    bool local9;
    bool local10;
    string local11;
    string local12;
    string local13;
    string local14;
    string local15;
    string local16;
    string local17;
    string local18;
    string local19;
    font local20;
    int local21;
    bool local22;
    bool local23;
    bool local24;
    string local25;
    string local26;
    string local27;
    string local28;
    string local29;
    string local30;
    string local31;
    string local32;
    font local33;
    int local34;
    int local35;
    int local36;
    int local37;
    bool local38;
    bool local39;
    bool local40;
    string local41;
    string local42;
    string local43;
    string local44;
    string local45;
    string local46;
    font local47;
    int local48;
    bool local49;
    bool local50;
    bool local51;
    string local52;
    string local53;
    string local54;
    string local55;
    string local56;
    string local57;
    string local58;
    string local59;
    effectconstants local60;

    if (type == 0) {
        writer.csf_11("/r/n<!--/r/n");
        if (!(webmenu.csf_8())) {
            writer.csf_11("//////////////////////////////////////////////////////r/n");
            writer.csf_11("// coalesys webmenu for asp.net drop through dhtml script/r/n");
            writer.csf_11("// copyright 2001 coalesys, inc./r/n");
            writer.csf_11("//////////////////////////////////////////////////////r/n");
        }
        writer.csf_11("function cswmshow()");
        writer.csf_11("{");
        writer.csf_11("}");
        writer.csf_11("function cswmshowinframe()");
        writer.csf_11("{");
        writer.csf_11("}");
        writer.csf_11("function cswmhide()");
        writer.csf_11("{");
        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("}");
        writer.csf_11("/r/n//-->");
        return;
    }
    if (type != 2 && type != 5)
        goto i0;
    local11 = webmenu.backgroundcolor;
    local12 = webmenu.selectedcolor;
    local13 = webmenu.selectedtextcolor;
    local14 = webmenu.popupicon;
    local15 = webmenu.selectedpopupicon;
    local2 = webmenu.hidetimer;
    local7 = webmenu.hideonclick;
    local8 = webmenu.ignorehorzscroll;
    local9 = webmenu.ignorevertscroll;
    local1 = webmenu.effect;
    local6 = webmenu.hideselectboxes;
    local10 = webmenu.shadowenabled;
    local17 = webmenu.shadowcolor;
    local3 = webmenu.shadowstrength;
    local4 = webmenu.shadowxoffset;
    local5 = webmenu.shadowyoffset;
    local18 = webmenu.onshow;
    local19 = webmenu.onhide;
    local0 = webmenu.itemfont;
    local16 = local0.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 ie5/ie6 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(local14);
    writer.csf_11("/";");
    writer.csf_11("var cswmexdis=/"");
    writer.csf_11(local15);
    writer.csf_11("/";");
    writer.csf_11("var cswmcth=");
    if (local7)
        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 (local10)
        writer.csf_11("var cswmsdw = new array();");
    if (local7) {
        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("}");
    }
    if (local1 != 0) {
        writer.csf_11("var cswmts=0;");
        writer.csf_11("var cswmtl=0;");
        writer.csf_11("var cswmtti=/"/";");
    }
    if (local1 == 3 || local1 == 4) {
        writer.csf_11("var cswmsip=0;");
        writer.csf_11("var cswmpr=/"/";");
        writer.csf_11("var cswmsa=false;");
        writer.csf_11("var cswmss=0;");
    }
    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("{");
    local60 = local1;
    switch (local60) {
        case 0:
            writer.csf_11("cswmti=settimeout(/"cswmhp(0);cswmclkd=-1/",ms);");
            break;
        break;
        case 1:
            writer.csf_11("cswmti=settimeout(/"cswmfo(90);cswmclkd=-1/",ms);");
            break;
        break;
        case 2:
            writer.csf_11("cswmti=settimeout(/"cswmpixo(1);cswmclkd=-1/",ms);");
            break;
        break;
        case 3:
            goto case 4;
        case 4:
            writer.csf_11("cswmti=settimeout(/"cswmhp(0);cswmclkd=-1;cswmts=0;/",ms);");
        break;
    }
    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.all[/"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(local18))) {
        writer.csf_11(local18);
        writer.csf_11(";");
    }
    writer.csf_11("}");
    writer.csf_11("}");
    writer.csf_11("}");
    writer.csf_11("function cswmhide()");
    writer.csf_11("{");
    local60 = local1;
    switch (local60) {
        case 0:
            writer.csf_11("cswmti=settimeout(/"cswmhp(0);cswmclkd=-1/", ");
            break;
        break;
        case 1:
            writer.csf_11("cswmti=settimeout(/"cswmfo(90);cswmclkd=-1/", ");
            break;
        break;
        case 2:
            writer.csf_11("cswmti=settimeout(/"cswmpixo(1);cswmclkd=-1/", ");
            break;
        break;
        case 3:
            goto case 4;
        case 4:
            writer.csf_11("cswmti=settimeout(/"cswmhp(0);cswmclkd=-1;cswmts=0/", ");
        break;
    }
    writer.csf_11(local2);
    writer.csf_11(");");
    writer.csf_11("}");
    writer.csf_11("function cswmhii(id,bgco)");
    writer.csf_11("{");
    writer.csf_11("if(document.all[/"cswmicoon/"+id])");
    writer.csf_11("{");
    writer.csf_11("document.all[/"cswmico/"+id].style.display=/"none/";");
    writer.csf_11("document.all[/"cswmicoon/"+id].style.display=/"inline/";");
    writer.csf_11("}");
    writer.csf_11("document.all[/"cswmitem/"+id].style.color=/"");
    writer.csf_11(local13);
    writer.csf_11("/";");
    writer.csf_11("document.all[/"cswmexpand/"+id].style.color=/"");
    writer.csf_11(local13);
    writer.csf_11("/";");
    writer.csf_11("if(bgco!=null)");
    writer.csf_11("{");
    writer.csf_11("document.all[/"cswmitem/"+id].style.backgroundcolor=bgco;");
    writer.csf_11("document.all[/"cswmexpand/"+id].style.backgroundcolor=bgco;");
    writer.csf_11("}");
    writer.csf_11("else");
    writer.csf_11("{");
    writer.csf_11("document.all[/"cswmitem/"+id].style.backgroundcolor=/"");
    writer.csf_11(local12);
    writer.csf_11("/";");
    writer.csf_11("document.all[/"cswmexpand/"+id].style.backgroundcolor=/"");
    writer.csf_11(local12);
    writer.csf_11("/";");
    writer.csf_11("}");
    writer.csf_11("if(document.all[/"cswmexpandic/"+id])");
    writer.csf_11("{");
    writer.csf_11("document.all[/"cswmexpandic/"+id].src=cswmexdis;");
    writer.csf_11("}");
    writer.csf_11("}");
    writer.csf_11("function cswmdii(id,bgco)");
    writer.csf_11("{");
    writer.csf_11("if(document.all[/"cswmicoon/"+id])");
    writer.csf_11("{");
    writer.csf_11("document.all[/"cswmico/"+id].style.display=/"inline/";");
    writer.csf_11("document.all[/"cswmicoon/"+id].style.display=/"none/";");
    writer.csf_11("}");
    writer.csf_11("document.all[/"cswmitem/"+id].style.color=/"");
    writer.csf_11(local16);
    writer.csf_11("/";");
    writer.csf_11("document.all[/"cswmexpand/"+id].style.color=/"");
    writer.csf_11(local16);
    writer.csf_11("/";");
    writer.csf_11("if(bgco!=null)");
    writer.csf_11("{");
    writer.csf_11("document.all[/"cswmitem/"+id].style.backgroundcolor=bgco;");
    writer.csf_11("document.all[/"cswmexpand/"+id].style.backgroundcolor=bgco;");
    writer.csf_11("}");
    writer.csf_11("else");
    writer.csf_11("{");
    writer.csf_11("document.all[/"cswmitem/"+id].style.backgroundcolor=/"");
    writer.csf_11(local11);
    writer.csf_11("/";");
    writer.csf_11("document.all[/"cswmexpand/"+id].style.backgroundcolor=/"");
    writer.csf_11(local11);
    writer.csf_11("/";");
    writer.csf_11("}");
    writer.csf_11("if(document.all[/"cswmexpandic/"+id])");
    writer.csf_11("{");
    writer.csf_11("document.all[/"cswmexpandic/"+id].src=cswmexis;");
    writer.csf_11("}");
    writer.csf_11("}");
    writer.csf_11("function cswmhideselectbox(boolhide,arrselectlist)");
    writer.csf_11("{");
    writer.csf_11("if(navigator.platform!=/"macppc/")");
    writer.csf_11("{");
    writer.csf_11("if(arrselectlist)");
    writer.csf_11("{");
    writer.csf_11("document.cswmselects=new array();");
    writer.csf_11("var selectid=new string();");
    writer.csf_11("var icount=0;");
    writer.csf_11("for(icount=0;icount<arrselectlist.length;icount++)");
    writer.csf_11("{");
    writer.csf_11("selectid=arrselectlist[icount];");
    writer.csf_11("document.cswmselects[icount]=document.all[selectid];");
    writer.csf_11("}");
    writer.csf_11("}");
    writer.csf_11("else");
    writer.csf_11("{");
     

商业源码热门下载www.html.org.cn

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表