您的位置:首页网页设计PHP实例 → BBSphp & mysql完整版五 

BBSphp & mysql完整版五 

时间:2004/11/7 3:27:00来源:本站整理作者:蓝点我要评论(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-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 += ''+

            '

相关阅读 Windows错误代码大全 Windows错误代码查询激活windows有什么用Mac QQ和Windows QQ聊天记录怎么合并 Mac QQ和Windows QQ聊天记录Windows 10自动更新怎么关闭 如何关闭Windows 10自动更新windows 10 rs4快速预览版17017下载错误问题Win10秋季创意者更新16291更新了什么 win10 16291更新内容windows10秋季创意者更新时间 windows10秋季创意者更新内容kb3150513补丁更新了什么 Windows 10补丁kb3150513是什么

文章评论
发表评论

热门文章 没有查询到任何记录。

最新文章 我的php文件怎么打开_php运算符怎么写 php 如何生成静态页面的函数PHP生成图片缩略图PHP session常见问题集锦及解决办法PHP实现同步远程Mysql

人气排行 DEDE在文章列表文章没有缩略图的不显示图片php+mysq修改用户密码我的php文件怎么打开_如何打开php文件的办法FCKeditor的配置和使用方法使用dedecms建站教程PHP+Ajax实现分页技术图片存储与浏览一例Linux+Apache+PHP+MySQLPHP生成图片缩略图