0

0

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

php中文网

php中文网

发布时间:2016-06-01 14:29:48

|

1002人浏览过

|

来源于php中文网

原创

//下面为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快速入门","window.open('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.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入门","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","#ffffff","#FF9999","#6666ff");
 fw_menu_2.addMenuItem("MySQL介绍","window.open('mysql1.php', '_self');");
 fw_menu_2.addMenuItem("在线下载","window.open('mysql2.php', '_self');");
 fw_menu_2.addMenuItem("学习教程","window.open('mysql4a.php', '_self');");
  fw_menu_2.addMenuItem("Mysql论坛","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",12,"#6666ff","#ffffff","#FF9999","#6666ff");
 fw_menu_3.addMenuItem("安装配置","window.open('php1.php?id1=1&&id2=1', '_self');");
 fw_menu_3.addMenuItem("程序代码","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.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 += ''+
      '
PHP速学教程(入门到精通)
PHP速学教程(入门到精通)

PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!

下载

本站声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn

相关专题

更多
Word 字间距调整方法汇总
Word 字间距调整方法汇总

本专题整合了Word字间距调整方法,阅读下面的文章了解更详细操作。

2

2025.12.24

任务管理器教程
任务管理器教程

本专题整合了任务管理器相关教程,阅读下面的文章了解更多详细操作。

2

2025.12.24

AppleID格式
AppleID格式

本专题整合了AppleID相关内容,阅读专题下面的文章了解更多详细教程。

0

2025.12.24

csgo视频观看入口合集
csgo视频观看入口合集

本专题整合了csgo观看入口合集,阅读下面的文章了知道更多入口地址。

29

2025.12.24

yandex外贸入口合集
yandex外贸入口合集

本专题汇总了yandex外贸入口地址,阅读下面的文章了解更多内容。

58

2025.12.24

添加脚注通用方法
添加脚注通用方法

本专题整合了添加脚注方法合集,阅读专题下面的文章了解更多内容。

1

2025.12.24

重启电脑教程汇总
重启电脑教程汇总

本专题整合了重启电脑操作教程,阅读下面的文章了解更多详细教程。

3

2025.12.24

纸张尺寸汇总
纸张尺寸汇总

本专题整合了纸张尺寸相关内容,阅读专题下面的文章了解更多内容。

5

2025.12.24

Java Spring Boot 微服务实战
Java Spring Boot 微服务实战

本专题深入讲解 Java Spring Boot 在微服务架构中的应用,内容涵盖服务注册与发现、REST API开发、配置中心、负载均衡、熔断与限流、日志与监控。通过实际项目案例(如电商订单系统),帮助开发者掌握 从单体应用迁移到高可用微服务系统的完整流程与实战能力。

1

2025.12.24

热门下载

更多
网站特效
/
网站源码
/
网站素材
/
前端模板

精品课程

更多
相关推荐
/
热门推荐
/
最新课程
关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号