BBS (php & mysql) full version (5)

Source: Internet
Author: User
Below is menu_comment.jsfunctionfwLoadMenus () {if (window. fw_menu_0) return; window. fw_menu_0newMenu (& quot; root & quot;, 92,20, & quot; Verdana, Arial, Helvetica, sans-serif & q // below 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 (' ');
Container = FIND ("menuContainer ");
}

Window. fwHideMenuTimer = null;
If (! Container) return;
Window. triedToWriteMenus = true;
Container. isContainer = true;
Container. menus = new Array ();
For (var I = 0; 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 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 + = ''+
'N' +
'N' +
'N' +
'';
}
Var x = I;
For (var I = 0; 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 = '';
Var dClose =''
If (menu. bgImageUp ){
Menu. menuBorder = 0;
Menu. menuItemBorder = 0;
DTag = '';
If (document. layers ){
DTag =' ';
DClose =' ';
}
}
Var textProps = 'position: absolute; left: '+ menu. menuItemIndent +'; top: 1 ;';
If (lrs ){
TextProps + = itemProps;
DTag = "";
DClose = "";
}

Var dText = ''+ item + '& nbsp' + item + '';
If (item = "separator "){
Content + = (dTag + 'nn '+ dClose );
} Else if (childMenu ){
Content + = (dTag + dText + '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 + = 'n ';
Content + = 'n' nn ';
}
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 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 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.