// 下面為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"ff"#6666ffff 」);
fw_menu_0.addMenuItem("Javascript","window.open('left.php', '_self');");
fw_menu_0.addMenuItem("Css77","win.open 入門」,"win.openProfw_menu_0.addMenuItem("Cssdowopen","win。 ('left.php', '_self');");
fw_menu_0.addMenuItem("JS線上資源","window.open('left.php', '_self');");
fw_menu_0.addMenuItem("相關論壇","window.open('php3.php?part=4&&p=1', '_self');");
fw_menu_0.fontWeight="solid"
fw_menu_0.fontWeight="solid"
ow_menu_0. =true;
window.fw_menu_1 = 新選單("root",92,20,"Verdana, Arial, Helvetica, sans-serif",12,"#6666ff","#ffffffff","#FF9999" , "#6666ff 」);
fw_menu_1.addMenuItem("Dreamwaver","window.open('left.php', '_self');");
fw_menu_1.addMenuItem(Firework" open('left.php', '_self');");
fw_menu_1.addMenuItem("Flash入門","window.open('left.php', '_self');");
fw_menu_1.addMenuItem("Html教學","window.open('left.php', '_self');");
fw_menu_1.addMenuItem("相關論壇","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","#ffffffff","#FF99999",#66666ff","#ffffffff 」);
fw_menu_2.addMenuItem("Mysql介紹","window.open('mysql1.php', '_self');");
fw_menu_2.addMenuItem("線上下載","windowopen fw_menu_2.addMenuItem("線上下載","windowopenopen ('mysql2.php', '_self');");
fw_menu_2.addMenuItem("教學學習","window.open('mysql4a.php', '_self');");
fw_menu_self');");
fw_menu_212w .addMenuItem("Mysql論壇","window.open('php3.php?part=2&&p=1', '_self');");
fw_menu_2.fontWeight="solid"
卷=true;
window.fw_menu_3 = 新選單("root",76,20,"Verdana, Arial, Helvetica, sans-serif",12,"#6666ff","#ffffffff","#FF99999", "#6666ff 」);
fw_menu_3.addMenuItem("安裝配置","window.open('php1.php?id1=1&&id2=1', '_self');");
"程式碼","window.open('php2.php?id1=2&&id2=1', '_self');");
fw_menu_3.addMenuItem("學習教學","window.open('php4. php?id1=4&&id2=1', '_self');");
fw_menu_3.addMenuItem("PHP論壇","window.open('php3.php?part=1&&p=1', '_self') ;");
fw_menu_3.fontWeight="solid";
fw_menu_3.hideOnMouseOut=true;
fw_menu_3.writeMenus(); }// fwLoadMenus()
//下面是fw_menu.js
function Menu(label, mw, mh, fnt, fs, fclr, fhclr, bg, bgh) {
this.02選單.js]”;
this.type = "選單";
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 = 標籤 || “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] = 動作;
}
function addMenuSeparator() {
this.items[this.items.length] = "separator";
this.actions[this.actions.length] = "";
this.menuItemBorder = 0;
}
// 對 NS6。
if (document.getElementById) return(document.getElementById(item));
返回(假);
}
function writeMenus(container) {
if (window.triedToWriteMenus) return;
if (!container && document.layers) {
window.delayWriteMenus = this.writeMenus;
var timeout = setTimeout('delayWriteMenus()', 250);
容器 = new Layer(100);
clearTimeout(定時器);
} else if (document.all || document.hasChildNodes) {
document.writeln('');
container = FIND("menuContainer");
}
window.fwHideMenuTimer = null;
如果(!容器)返回;
window.triedToWriteMenus = true;
container.isContainer = true;
container.menus = new Array();
for (var i=0; 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
if (menu.bgImageUp) {
menu.menuBorder = 0;
menu.menuItemBorder = 0;
}
if (lrs) {
var lite = new Layer(100, menuLayer);
lite.top = menu.menuBorder;
lite.left = menu.menuBorder;
var 身體 = new Layer(100, lite);
body.top = menu.menuBorder;
body.left = menu.menuBorder;
} else {
content = ''
:1;left:10;top:' (i * 100) ';可見性:隱藏;">n'
' 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
var menu = container.document.layers[i];
container.menus[i].menuLayer = 菜單;
container.menus[i].menuLayer.Menu.container = 容器;
body.clip.width = proto.menuWidth || body.clip.width;
body.clip.height = proto.menuHeight || body.clip.height;
for (var n=0; n
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.layers[n-1].top body.orderument.layers[n-11].clip.
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) { = 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) {
.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.clip.width = l.clip.width proto.menuBorder;
body.clip.height = l.top l.clip.height