Ec (2); functionmwritetodocument () {& nbsp; & varmwb1; & nbsp; & nbsp; & nbsp; & nbs script ec (2); script
Function mwritetodocument (){
Var mwb = 1;
Var stringx ='
'Style = "filter: Alpha (Opacity = 80); cursor: '+ mcursor +'; '+ mfonts +
'Border-left: '+ mwb + 'px solid' + mmenuoutbordercolor +'; '+
'Border-right: '+ mwb + 'px solid' + mmenuinbordercolor +'; '+
'Border-top: '+ mwb + 'px solid' + mmenuoutbordercolor +'; '+
'Border-bottom: '+ mwb + 'px solid' + mmenuinbordercolor +'; padding: 0px ">'
For (var x = 0; x Var thismenu = mmenus [x];
Var imgsize = "";
If (thismenu. sizex! = "0" | thismenu. sizey! = "0") imgsize = "width =" + thismenu. sizex + "height =" + thismenu. sizey;
Var ifspace = "";
If (thismenu. caption! = "") Ifspace = "";
Stringx + =""," + X + ") onmouseout = mmenu_out (" + x +
") Onmousedown = mmenu_down (mmenup" + x + "," + x + ")";
If (thismenu. command! = ""){
Stringx + = "onmouseup = mmenu_up (); mexec2 (" + x + ");";
} Else {
Stringx + = "onmouseup = mmenu_up ()";
}
If (thismenu. pos = "0 "){
Stringx + = "align = center>" + ifspace + thismenu. caption +"";
} Else if (thismenu. pos = "1 "){
Stringx + = "align = center>" + thismenu. caption + ifspace +"";
} Else if (thismenu. pos = "2 "){
Stringx + = "align = center background = '" + thismenu. img + "'>" + thismenu. caption +"";
} Else {
Stringx + = "align = center>" + thismenu. caption +"";
}
Stringx + = "";
}
Stringx + =" ";
For (var x = 0; x Thismenu = mmenus [x];
If (x <0 ){
Stringx + ='
';
} Else {
Stringx + ='
'Style = "filter: Alpha (Opacity = 80); cursor: '+ mcursor +'; position: absolute; '+
'Width: '+ mmenuitemwidth + 'px; z-index:' + (x + 100 );
If (mmenuinbordercolor! = Mmenuoutbordercolor & msubedge = "0 "){
Stringx + = '; border-left: 1px solid' + mmidoutcolor +
'; Border-top: 1px solid' + mmidoutcolor ;}
Stringx + = '; border-right: 1px solid' + mmenuinbordercolor +
'; Border-bottom: 1px solid' + mmenuinbordercolor +'; visibility: hidden "onselectstart =" event. returnValue = false "> \ n' +
'
'Style = "'+ mfonts + 'border-left: 1px solid' + mmenuoutbordercolor;
If (mmenuinbordercolor! = Mmenuoutbordercolor & msubedge = "0 "){
Stringx + = '; border-right: 1px solid' + mmidincolor +
'; Border-bottom: 1px solid' + mmidincolor ;}
Stringx + = '; border-top: 1px solid' + mmenuoutbordercolor +
'; Padding: 4px "bgcolor =' + mmenucolor + '> \ N'
For (var I = 0; I Var thismenuitem = thismenu. items [I];
Var imgsize = "";
If (thismenuitem. sizex! = "0" | thismenuitem. sizey! = "0") imgsize = "width =" + thismenuitem. sizex + "height =" + thismenuitem. sizey;
Var ifspace = "";
If (thismenu. caption! = "") Ifspace = "";
If (thismenuitem. hasc! = Null ){
Stringx + ="", '" + Thismenuitem. hasc + "'," + x + ",-1," + I + "); mshowsubmenu (msubmenup" + thismenuitem. hasc + ", mp" + thismenuitem. hasc + ", mmenup" + x + "); \" "+
">
| If (thismenuitem. pos = "0 "){Stringx + = ">" + ifspace + thismenuitem. caption +"} Else if (thismenuitem. pos = "1 "){Stringx + = ">" + thismenuitem. caption + ifspace +"} Else if (thismenuitem. pos = "2 "){Stringx + = "background = '" + thismenuitem. img + "'>" + thismenuitem. caption +"
| } Else {Stringx + = ">" + thismenuitem. caption +"}Stringx + = "align = right width = '1'> 4
\ N ";
} Else if (! Thismenuitem. isline ){
Stringx + ="", False," + x + ",-1," + I + "); \" onmouseout = mmenuitem_out () onmousedown = mmenuitem_down () onmouseup = ";
Stringx + = "mmenuitem_up (); mexec (" + x + "," + I + ");";
If (thismenuitem. pos = "0 "){
Stringx + = ">" + ifspace + thismenuitem. caption +"";
} Else if (thismenuitem. pos = "1 "){
Stringx + = ">" + thismenuitem. caption + ifspace +"";
} Else if (thismenuitem. pos = "2 "){
Stringx + = "background = '" + thismenuitem. img + "'>" + thismenuitem. caption +"";
} Else {
Stringx + = ">" + thismenuitem. caption +"";
}
} Else {
Stringx + ='\ N ';
}
} Stringx + ='\ N
'
}
}
For (var j = 1; j <= mnumberofsub; j ++ ){
Thisitem = eval ("msub" + j );
Stringx + ='
'Style = "filter: Alpha (Opacity = 80); tag: '+ thisitem. level +'; cursor: '+ mcursor +'; position: absolute; '+
'Width: '+ mmenuitemwidth + 'px; z-index:' + (j + 200 );
If (mmenuinbordercolor! = Mmenuoutbordercolor & msubedge = "0 "){
Stringx + = '; border-left: 1px solid' + mmidoutcolor +
'; Border-top: 1px solid' + mmidoutcolor ;}
Stringx + = '; border-right: 1px solid' + mmenuinbordercolor +
'; Border-bottom: 1px solid' + mmenuinbordercolor +'; visibility: hidden "onselectstart =" event. returnValue = false "> \ n' +
'
'Style = "'+ mfonts + 'border-left: 1px solid' + mmenuoutbordercolor;
If (mmenuinbordercolor! = Mmenuoutbordercolor & msubedge = "0 "){
Stringx + = '; border-right: 1px solid' + mmidincolor +
'; Border-bottom: 1px solid' + mmidincolor ;}
Stringx + = '; border-top: 1px solid' + mmenuoutbordercolor +
'; Padding: 4px "bgcolor =' + mmenucolor + '> \ N'
For (var I = 0; I Var thismenuitem = thisitem. items [I];
Var imgsize = "";
If (thismenuitem. sizex! = "0" | thismenuitem. sizey! = "0") imgsize = "width =" + thismenuitem. sizex + "height =" + thismenuitem. sizey;
Var ifspace = "";
If (thismenu. caption! = "") Ifspace = "";
If (thismenuitem. hasc! = Null ){
Stringx + ="", '" + Thismenuitem. hasc + "',-1," + j + "," + I + "); mshowsubmenu (msubmenup" + thismenuitem. hasc + ", mp" + thismenuitem. hasc + ", msubmenup" + j + "); \" "+
">
| If (thismenuitem. pos = "0 "){Stringx + = ">" + ifspace + thismenuitem. caption +"} Else if (thismenuitem. pos = "1 "){Stringx + = ">" + thismenuitem. caption + ifspace +"} Else if (thismenuitem. pos = "2 "){Stringx + = "background = '" + thismenuitem. img + "'>" + thismenuitem. caption +"
| } Else {Stringx + = ">" + thismenuitem. caption +"}Stringx + = "align = right width = '1'> 4
\ N ";
} Else if (! Thismenuitem. isline ){
Stringx + ="", False,-1," + j + "," + I + "); \" onmouseout = mmenuitem_out () onmousedown = mmenuitem_down () onmouseup = ";
Stringx + = "mmenuitem_up (); mexec3 (" + j + "," + I + ");";
If (thismenuitem. pos = "0 "){
Stringx + = ">" + ifspace + thismenuitem. caption +"";
} Else if (thismenuitem. pos = "1 "){
Stringx + = ">" + thismenuitem. caption + ifspace +"";
} Else if (thismenuitem. pos = "2 "){
Stringx + = "background = '" + thismenuitem. img + "'>" + thismenuitem. caption +"";
} Else {
Stringx + = ">" + thismenuitem. caption +"";
}
} Else {
Stringx + ='\ N ';
}
}
Stringx + ='\ N
'
}
Document. write ("
"+ Stringx +"
");
}