webI 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("{");
Coalesys.WebMenu source code(partial)(1)
80酷酷网 80kuku.com