BBS (PHP & MySQL) full version (v)

Source: Internet
Author: User
Keywords BBS (PHP & MySQL) full version (v)
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", "#6666ff", "#ffffff", "#FF9999", "# 6666ff ");
Fw_menu_0.addmenuitem ("JavaScript", "window.open (' left.php ', ' _self ');");
Fw_menu_0.addmenuitem ("CSS QuickStart", "window.open (' left.php ', ' _self ');");
Fw_menu_0.addmenuitem ("JS online resources", "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", "#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 starter", "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", "#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 ("Learning 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", 76,20, "Verdana, Arial, Helvetica, Sans-serif", "#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 ("Learning 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 ()
Here's 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 (+, container);
var lite = new Layer (Menulayer);
Lite.top = Menu.menuborder;
Lite.left = Menu.menuborder;
var BODY = new Layer (+, 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 + ' &NBSPN ' + item + ';
if (item = = "Separator") {
Content + = (dTag + ' nn ' + dclose);
} else if (Childmenu) {
Content + = (DTag + dtext + ' n ' + dclose);
} else {
Content + = (DTag + dtext + dclose);
}
if (LRS) {
L.document.open ("text/html");
L.document.writeln (content);
L.document.close ();
Content = ';
Thestat + = "-";
tsc++;
if (TSC > 50) {
TSC = 0;
Thestat = "";
}
status = Thestat;
}
countitems++;
}
if (LRS) {
Focus Layer
var focusitem = new Layer (n, body);
Focusitem.visiblity= "hidden";
FocusItem.document.open ("text/html");
FocusItem.document.writeln ("");
FocusItem.document.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.document.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.layers[0].document.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.document.layers[n];
L.menu = Container.menus[i];
L.menuhilitebgcolor = Proto.menuhilitebgcolor;
L.document.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.document.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.document.layers[n-1].top + body.document.layers[n-1].clip.height + proto.menuItemBorder;
L.hilite = l.document.layers[1];
if (proto.bgimageup) l.background.src = Proto.bgimageup;
L.document.layers[1].ishilite = true;
if (L.document.layers[0].id.indexof ("Menuseparator")! =-1) {
L.hilite = null;
L.clip.height-= L.CLIP.HEIGHT/2;
L.document.layers[0].document.bgcolor = Proto.bgcolor;
L.document.layers[0].clip.width = l.clip.width-2;
L.document.layers[0].clip.height = 1;
L.document.layers[1].document.bgcolor = Proto.menulitebgcolor;
L.document.layers[1].clip.width = l.clip.width-2;
L.document.layers[1].clip.height = 1;
L.document.layers[1].top = l.document.layers[0].top + 1;
} else if (L.document.layers.length > 2) {
L.childmenu = Container.menus[i].items[n].menulayer;
L.document.layers[2].left = l.clip.width-13;
L.document.layers[2].top = (L.CLIP.HEIGHT/2)-4;
L.document.layers[2].clip.left + = 3;
L.menu.childmenus[l.menu.childmenus.length] = L.childmenu;
}
}
Body.document.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.