首页 > 作文

BBS(php & mysql)完整版(五)

更新时间:2023-04-06 05:16:03 阅读: 评论:0

//下面为menu_comment.js

function fwloadmenus() {

if (window.fw_menu_0) return;

window.fw_menu_0 = new menu(“root”,92,20,”verdana, arial, helvetica, sans-rif”,12,”#6666ff”,”#ffffff”,”#ff9999″,”#6666ff”);

fw_menu_0.addmenuitem(“javascript”,”window.open(‘left.php’, ‘_lf’);”);

fw_menu_0.addmenuitem(“css快速入门”,”window.open(‘left.php’, ‘_lf’);”);

fw_menu_0.addmenuitem(“js在线资源”,”window.open(‘left.php’, ‘_lf’);”);

fw_menu_0.addmenuitem(“相关论坛”,”window.open(‘php3.php?part=4&&p=1’, ‘_lf’);”);

fw_menu_0.fontweight=”solid”;

fw_menu_0.hideonmouout=true;

window.fw_menu_1 = new menu(“root”,92,20,”verdana, arial, helvetica, sans-rif”,12,”#6666ff”,”#ffffff”,”#ff9999″,”#6666ff”);

fw_menu_1.addmenuitem(“dreamwaver”,”window.open(‘left.php’, ‘_lf’);”);

fw_menu_1.addmenuitem(“firework”,”window.open(‘left.php’, ‘_lf’);”);

fw_menu_1.addmenuitem(“flash入门”,”window.open(‘left.php’, ‘_lf’);”);

fw_menu_1.addmenuitem(“html教程”,”window.open(‘left.php’, ‘_lf’);”);

fw_menu_1.addmenuitem(“相关论坛”,”window.open(‘p河鲈hp3.php?part=3&&p=1’, ‘_lf’);”);

fw_menu_1.fontweight=”solid”;

fw_menu_1.hideonmouout=true;

window.fw_menu_2 = new menu(“root”,86,20,”verdana, arial, helvetica, sans-rif”,12,”#6666ff”,”#ffffff”,”#ff9999″,”#6666ff”);

fw_menu_2.addmenuitem(“mysql介绍”,”window.open(‘mysql1.php高中理科有哪些课程217;, ‘_lf’);”);

fw_menu_2.addmenuitem(“在线下载”,”window.open(‘mysql2.php’, ‘_lf’);”);

fw_menu_2.addmenuitem(“学习教程”,”window.open(‘mysql4a.php’, ‘_lf’);”);

fw_menu_2.addmenuitem(“mysql论坛”,”window.open(‘php3.php?part=2&&p=1’, ‘_lf’);”);

fw_menu_2.fontweight=”solid”;

fw_menu_2.hideonmouout=true;

window.fw_menu_3 = new menu(“root”,76,20,”verdana, arial, helvetica, sans-rif”,12,”#6666ff”,”#ffffff”,”#ff9999″,”#6666ff”);

fw_menu_3.addmenuitem(“安装配置”,”window.open(‘php1.php?id1=1&&id2=1’, ‘_lf’);”);

fw_menu_3.addmenuitem(“程序代码”,”window.open(‘php2.php?id1=2&&id2=1’, ‘_lf’);”);

fw_menu_3.addmenuitem(“学习教程”,”window.open(‘php4.php?id1=4&&id2=1’, ‘_lf’);”);

fw_menu_3.addmenuitem(“php论坛”,”window.open(‘php3.php?part=1&&p=1’, ‘_lf’);”);

fw_menu_3.fontweight=”solid”;

fw_menu_3.hideonmouout=true;

fw_menu_3.writemenus();

} // fwloadmenus()

//下面是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-rif”;

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();

t非主流繁体字签名his.hideonmouout = true;

this.addmenuitem = addmenuitem;

this.addmenuparator = addmenuparator;

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 addmenuit大学生的责任与担当em(label, action) {

this.items[this.items.length] = label;

this.actions[this.actions.length] = action;

}

function addmenuparator() {

this.items[this.items.length] = “parator”;

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(fal);

}

function writemenus(container) {

if (window.triedtowritemenus) return;

if (!container && document.layers) {

window.delaywritemenus = this.writemenus;

var timer = ttimeout(‘delaywritemenus()’, 250);

container = new layer(100);

cleartimeout(timer);

} el if (document.all || document.haschildnodes) {

doc路漫漫兮其修远兮ument.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 = fal;

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;

} el {

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;” onmouout=”mououtmenu();”>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 = fal;

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 + ‘;” onmouover=”onmenuitemover(null,this);” onclick=”onmenuitemaction(null,this);’;

el 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 dclo = ‘</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 +'”>’;

dclo = ‘</layer>’;

}

}

var textprops = ‘position:absolute;left:’ + menu.menuitemindent + ‘;top:1;’;

if (lrs) {

textprops +=itemprops;

dtag = “”;

dclo = “”;

}

var dtext= ‘<div id=”menuitemtext’+ countitems +'” style=”‘ + textprops + ‘color:’+ menu.fontcolor +’;”>’+ item +’</div>n<div id=”menuitemhilite’+ countitems +'” style=”‘ + textprops + ‘top:1;color:’+ menu.fontcolorhilite +’;visibility:hidden;”>’+ item +’</div>’;

if (item == “parator”) {

content += ( dtag + ‘<div id=”menuparator’+ countitems +'” style=”position:absolute;left:1;top:2;”></div>n<div id=”menuparatorlite’+ countitems +'” style=”position:absolute;left:1;top:2;”></div>n’ + dclo);

} el if (childmenu) {

content += ( dtag + dtext + ‘<div id=”childmenu’+ countitems +'” style=”position:absolute;left:0;top:3;”><img src=”‘+ menu.childmenuicon +'”></div>n’ + dclo);

} el {

content += ( dtag + dtext + dclo);

}

if (lrs) {

l.document.open(“text/html”);

l.document.writeln(content);

l.document.clo();

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.document.open(“text/html”);

focusitem.document.writeln(”“);

focusitem.document.clo();

} el {

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</div>n’;

}

i=x;

}

if (document.layers) {

container.clip.width = window.innerwidth;

container.clip.height = window.innerheight;

container.onmouout = mououtmenu;

container.menucontainerbgcolor = this.menucontainerbgcolor;

for (var i=0; i<container.document.layers.length; 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<body.document.layers.length-1; 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.onmouover = 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(“menuparator”) != -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;

} el 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

本文发布于:2023-04-06 05:16:01,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/fanwen/zuowen/1673cb7f198a76a98022604c36be9005.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

本文word下载地址:BBS(php & mysql)完整版(五).doc

本文 PDF 下载地址:BBS(php & mysql)完整版(五).pdf

下一篇:返回列表
标签:在线   论坛   教程   入门
相关文章
留言与评论(共有 0 条评论)
   
验证码:
Copyright ©2019-2022 Comsenz Inc.Powered by © 专利检索| 网站地图