// Below is menu_comment.js
Function fwLoadMenus (){
If (window. fw_menu_0) return;
Window. fw_menu_0 = new Menu ("root", 92,20, "Verdana, Arial, Helvetica, sans-serif", 12, "# 6666ff", "# ffffff", "# FF9999 ", "# 6666ff ");
Fw_menu_0.addMenuItem ("Javascript", "window. open ('left. php', '_ self ');");
Fw_menu_0.addMenuItem ("Css Quick Start", "window. open ('left. php', '_ self ');");
Fw_menu_0.addMenuItem ("JS online resource", "window. open ('left. php', '_ self ');");
Fw_menu_0.addMenuItem ("related forum", "window. open ('php3. php? Part = 4 & p = 1', '_ self ');");
Fw_menu_0.fontWeight = "solid ";
Fw_menu_0.hideOnMouseOut = true;
Window. fw_menu_1 = new Menu ("root", 92,20, "Verdana, Arial, Helvetica, sans-serif", 12, "# 6666ff", "# ffffff", "# FF9999 ", "# 6666ff ");
Fw_menu_1.addMenuItem ("Dreamwaver", "window. open ('left. php', '_ self ');");
Fw_menu_1.addMenuItem ("Firework", "window. open ('left. php', '_ self ');");
Fw_menu_1.addMenuItem ("Flash entry", "window. open ('left. php', '_ self ');");
Fw_menu_1.addMenuItem ("Html tutorial", "window. open ('left. php', '_ self ');");
Fw_menu_1.addMenuItem ("related forum", "window. open ('php3. php? Part = 3 & p = 1', '_ self ');");
Fw_menu_1.fontWeight = "solid ";
Fw_menu_1.hideOnMouseOut = true;
Window. fw_menu_2 = new Menu ("root", 86,20, "Verdana, Arial, Helvetica, sans-serif", 12, "# 6666ff", "# ffffff", "# FF9999 ", "# 6666ff ");
Fw_menu_2.addMenuItem ("Mysql Introduction", "window. open ('mysql1. php', '_ self ');");
Fw_menu_2.addMenuItem ("online download", "window. open ('mysql2. php', '_ self ');");
Fw_menu_2.addMenuItem ("tutorial", "window. open ('mysql4a. php', '_ self ');");
Fw_menu_2.addMenuItem ("Mysql Forum", "window. open ('php3. php? Part = 2 & p = 1', '_ self ');");
Fw_menu_2.fontWeight = "solid ";
Fw_menu_2.hideOnMouseOut = true;
Window. fw_menu_3 = new Menu ("root", 6,20, "Verdana, Arial, Helvetica, sans-serif", 12, "# 6666ff", "# ffffff", "# FF9999 ", "# 6666ff ");
Fw_menu_3.addMenuItem ("installation configuration", "window. open ('php1. php? Id1 = 1 & id2 = 1', '_ self ');");
Fw_menu_3.addMenuItem ("program code", "window. open ('php2. php? Id1 = 2 & id2 = 1', '_ self ');");
Fw_menu_3.addMenuItem ("tutorial", "window. open ('php4. php? Id1 = 4 & id2 = 1', '_ self ');");
Fw_menu_3.addMenuItem ("PHP Forum", "window. open ('php3. php? Part = 1 & p = 1', '_ self ');");
Fw_menu_3.fontWeight = "solid ";
Fw_menu_3.hideOnMouseOut = true;
Fw_menu_3.writeMenus ();
} // FwLoadMenus ()
// The following is fw_menu.js
Function Menu (label, mw, mh, fnt, fs, fclr, fhclr, bg, bgh ){
This. version = "990702 [Menu; menu. js]";
This. type = "Menu ";
This. menuWidth = mw;
This. menuItemHeight = mh;
This. fontSize = fs | 12;
This. fontWeight = "plain ";
This. fontFamily = fnt | "arial, helvetica, verdana, sans-serif ";
This. fontColor = fclr | "#000000 ";
This. fontColorHilite = fhclr | "# ffffff ";
This. bgColor = "#555555 ";
This. menuBorder = 1;
This. menuItemBorder = 1;
This. menuItemBgColor = bg | "# cccccc ";
This. menuLiteBgColor = "# ffffff ";
This. menuBorderBgColor = "#777777 ";
This. menuHiliteBgColor = bgh | "#000084 ";
This. menuContainerBgColor = "# cccccc ";
This. childMenuIcon = "arrows.gif ";
This. items = new Array ();
This. actions = new Array ();
This. childMenus = new Array ();
This. hideOnMouseOut = true;
This. addMenuItem = addMenuItem;
This. addMenuSeparator = addMenuSeparator;
This. writeMenus = writeMenus;
This. FW_showMenu = FW_showMenu;
This. onMenuItemOver = onMenuItemOver;
This. onMenuItemAction = onMenuItemAction;
This. hideMenu = hideMenu;
This. hideChildMenu = hideChildMenu;
If (! Window. menus) window. menus = new Array ();
This. label = label | "menuLabel" + window. menus. length;
Window. menus [this. label] = this;
Window. menus [window. menus. length] = this;
If (! Window. activeMenus) window. activeMenus = new Array ();
}
Function addMenuItem (label, action ){
This. items [this. items. length] = label;
This. actions [this. actions. length] = action;
}
Function addMenuSeparator (){
This. items [this. items. length] = "separator ";
This. actions [this. actions. length] = "";
This. menuItemBorder = 0;
}
// For NS6.
Function FIND (item ){
If (document. all) return (document. all [item]);
If (document. getElementById) return (document. getElementById (item ));
Return (false );
}
Function writeMenus (container ){
If (window. triedToWriteMenus) return;
If (! Container & document. layers ){
Window. delayWriteMenus = this. writeMenus;
Var timer = setTimeout ('delaywritemenus () ', 250 );
Container = new Layer (100 );
ClearTimeout (timer );
} Else if (document. all | document. hasChildNodes ){
Document. writeln ('<span id = "menuContainer"> </SPAN> ');
Container = FIND ("menuContainer ");
}
Window. fwHideMenuTimer = null;
If (! Container) return;
Window. triedToWriteMenus = true;
Container. isContainer = true;
Container. menus = new Array ();
For (var I = 0; I <window. menus. length; I ++)
Container. menus [I] = window. menus [I];
Window. menus. length = 0;
Var countMenus = 0;
Var countItems = 0;
Var top = 0;
Var content = '';
Var lrs = false;
Var theStat = "";
Var tsc = 0;
If (document. layers) lrs = true;
For (var I = 0; I <container. menus. length; I ++, countMenus ++ ){
Var menu = container. menus [I];
If (menu. bgImageUp ){
Menu. menuBorder = 0;
Menu. menuItemBorder = 0;
}
If (lrs ){
Var menuLayer = new Layer (100, container );
Var lite = new Layer (100, menuLayer );
Lite. top = menu. menuBorder;
Lite. left = menu. menuBorder;
Var body = new Layer (100, lite );
Body. top = menu. menuBorder;
Body. left = menu. menuBorder;
} Else {
Content + = ''+
'<Div id = "menuLayer' + countMenus + '" STYLE = "position: absolute; z-index: 1; left: 10; top:' + (I * 100) + '; visibility: hidden; "> n' +
'<Div id = "menuLite' + countMenus + '" STYLE = "position: absolute; z-index: 1; left:' + menu. menuBorder + '; top:' + menu. menuBorder + '; visibility: hide; "onMouseOut =" mouseoutMenu (); "> n' +
'<Div id = "menuFg' + countMenus + '" STYLE = "position: absolute; left:' + menu. menuBorder + '; top:' + menu. menuBorder + '; visibility: hide; "> n' +
'';
}
Var x = I;
For (var I = 0; I <menu. items. length; I ++ ){
Var item = menu. items [I];
Var childMenu = false;
Var defaultHeight = menu. fontSize + 6;
Var defaultIndent = menu. fontSize;
If (item. label ){
Item = item. label;
ChildMenu = true;
}
Menu. menuItemHeight = menu. menuItemHeight | defaultHeight;
Menu. menuItemIndent = menu. menuItemIndent | defaultIndent;
Var itemProps = 'font-family: '+ menu. fontFamily +'; font-weight: '+ menu. fontWeight +'; fontSize: '+ menu. fontSize + ';';
If (menu. fontStyle) itemProps + = 'font-style: '+ menu. fontStyle + ';';
If (document. all)
ItemProps + = 'font-size: '+ menu. fontSize +'; "onMouseOver =" onMenuItemOver (null, this); "onClick =" onMenuItemAction (null, this );';
Else if (! Document. layers ){
ItemProps + = 'font-size: '+ menu. fontSize + 'px;'; // zilla wants 12px.
}
Var l;
If (lrs ){
L = new Layer (800, body );
}
Var dTag = '<div id = "menuItem' + countItems + '" STYLE = "position: absolute; left: 0; top:' + (I * menu. menuItemHeight) + ';' + itemProps + '"> ';
Var dClose = '</DIV>'
If (menu. bgImageUp ){
Menu. menuBorder = 0;
Menu. menuItemBorder = 0;
DTag = '<div id = "menuItem' + countItems + '" STYLE = "background: url (' + menu. bgImageUp + '); position: absolute; left: 0; top:' + (I * menu. menuItemHeight) + ';' + itemProps + '"> ';
If (document. layers ){
DTag = '<layer background = "' + menu. bgImageUp + '"ID =" menuItem' + countItems + '"TOP ="' + (I * menu. menuItemHeight) + '"style ="' + itemProps + '"> ';
DClose = '</LAYER> ';
}
}
Var textProps = 'position: absolute; left: '+ menu. menuItemIndent +'; top: 1 ;';
If (lrs ){
TextProps + = itemProps;
DTag = "";
DClose = "";
}
Var dText = '<div id = "menuItemText' + countItems + '" STYLE = "' + textProps + 'color: '+ menu. fontColor + '; ">' + item + '& nbsp </DIV> n <div id =" menuItemHilite' + countItems + '"STYLE ="' + textProps + 'top: 1; color: '+ menu. fontColorHilite + '; visibility: hidden; ">' + item + '& nbsp </DIV> ';
If (item = "separator "){
Content + = (dTag + '<div id = "menuSeparator' + countItems + '" STYLE = "position: absolute; left: 1; top: 2; "> </DIV> n <div id =" menuSeparatorLite "+ countItems + '" STYLE = "position: absolute; left: 1; top: 2; "> </DIV> n' + dClose );
} Else if (childMenu ){
Content + = (dTag + dText + '<div id = "childMenu' + countItems + '" STYLE = "position: absolute; left: 0; top: 3; "> </DIV> n' + dClose );
} Else {
Content + = (dTag + dText + dClose );
}
If (lrs ){
L.doc ument. open ("text/html ");
L.doc ument. writeln (content );
L.doc ument. close ();
Content = '';
TheStat + = "-";
Tsc ++;
If (tsc> 50 ){
Tsc = 0;
TheStat = "";
}
Status = theStat;
}
CountItems ++;
}
If (lrs ){
// Focus layer
Var focusItem = new Layer (100, body );
FocusItem. visiblity = "hidden ";
FocusItem.doc ument. open ("text/html ");
FocusItem.doc ument. writeln ("");
FocusItem.doc ument. close ();
} Else {
Content + = '<div id = "focusItem' + countMenus + '" STYLE = "position: absolute; left: 0; top: 0; visibility: hide; "onClick =" onMenuItemAction (null, this); "> </DIV> n ';
Content + = '</DIV> n </DIV> n ';
}
I = x;
}
If (document. layers ){
Container. clip. width = window. innerWidth;
Container. clip. height = window. innerHeight;
Container. onmouseout = mouseoutMenu;
Container. menuContainerBgColor = this. menuContainerBgColor;
For (var I = 0; I <container.doc ument. layers. length; I ++ ){
Proto = container. menus [I];
Var menu = container.doc ument. layers [I];
Container. menus [I]. menuLayer = menu;
Container. menus [I]. menuLayer. Menu = container. menus [I];
Container. menus [I]. menuLayer. Menu. container = container;
Var body = menu.document.layers000002.16.doc ument. layers [0];
Body. clip. width = proto. menuWidth | body. clip. width;
Body. clip. height = proto. menuHeight | body. clip. height;
For (var n = 0; n <body.doc ument. layers. length-1; n ++ ){
Var l = body.doc ument. layers [n];
L. Menu = container. menus [I];
L. menuHiliteBgColor = proto. menuHiliteBgColor;
L.doc ument. bgColor = proto. menuItemBgColor;
L. saveColor = proto. menuItemBgColor;
L. onmouseover = proto. onMenuItemOver;
L. onclick = proto. onMenuItemAction;
L. action = container. menus [I]. actions [n];
L. focusItem = body.document.layers?body.doc ument. layers. length-1];
L. clip. width = proto. menuWidth | body. clip. width + proto. menuItemIndent;
L. clip. height = proto. menuItemHeight | l. clip. height;
If (n> 0) l. top = body.doc ument. layers [n-1]. top + body.doc ument. layers [n-1]. clip. height + proto. menuItemBorder;
L. hilite = l.doc ument. layers [1];
If (proto. bgImageUp) l. background. src = proto. bgImageUp;
L.doc ument. layers [1]. isHilite = true;
If (l.doc ument. layers [0]. id. indexOf ("menuSeparator ")! =-1 ){
L. hilite = null;
L. clip. height-= l. clip. height/2;
L.document.layers000002.16.doc ument. bgColor = proto. bgColor;
L.doc ument. layers [0]. clip. width = l. clip. width-2;
L.doc ument. layers [0]. clip. height = 1;
L.document.layers000012.16.doc ument. bgColor = proto. menuLiteBgColor;
L.doc ument. layers [1]. clip. width = l. clip. width-2;
L.doc ument. layers [1]. clip. height = 1;
L.doc ument. layers [1]. top = l.doc ument. layers [0]. top + 1;
} Else if (l.doc ument. layers. length> 2 ){
L. childMenu = container. menus [I]. items [n]. menuLayer;
L.doc ument. layers [2]. left = l. clip. width-13;
L.doc ument. layers [2]. top = (l. clip. height/2)-4;
L.doc ument. layers [2]. clip. left + = 3;
L. Menu. childMenus [l. Menu. childMenus. length] = l. childMenu;
}
}
Body.doc ument. bgColor = proto. bgColor;
Body. clip. width = l. clip. width + proto. menuBorder;
Body. clip. height = l. top + l. clip. height