/    Sign up×
Community /Pin to ProfileBookmark

Dumbfounded in Dallas

I am NOT a coder (and I don’t play one on TV either).

I downloaded a web template (CSS) that has a separate file called mm_menu.js. I looked at the code and freaked. 😮

Anyway, I want to use it for my site, but I need to change a few things, like the menu item names and color. Can anyone assist?

I wanted to post it here, but it is too long for this posting.

It starts with:

  • * Copyright (c) 2000-2002 Macromedia, Inc.
    *
  • * based on menu.js

  • * by gary smith, July 1997

  • * Copyright (c) 1997-1999 Netscape Communications Corp.
    *

  • * Netscape grants you a royalty free license to use or modify this

  • * software provided that this copyright notice appears on all copies.

  • * This software is provided “AS IS,” without a warranty of any kind.
    */
    function Menu(label, mw, mh, fnt, fs, fclr, fhclr, bg, bgh, halgn, valgn, pad, space, to, sx, sy, srel, opq, vert, idt, aw, ah)
    {
    this.version = “020320 [Menu; mm_menu.js]”;
    this.type = “Menu”;
    this.menuWidth = mw;
    this.menuItemHeight = mh;
    this.fontSize = fs;
    this.fontWeight = “plain”;
    this.fontFamily = fnt;
    this.fontColor = fclr;
    this.fontColorHilite = fhclr;
    this.bgColor = “#555555”;
    this.menuBorder = 1;
    this.menuBgOpaque=opq;
    this.menuItemBorder = 1;
    this.menuItemIndent = idt;
    this.menuItemBgColor = bg;
    this.menuItemVAlign = valgn;
    this.menuItemHAlign = halgn;
    this.menuItemPadding = pad;
    this.menuItemSpacing = space;
    this.menuLiteBgColor = “#ffffff”;
    this.menuBorderBgColor = “#777777”;
    this.menuHiliteBgColor = bgh;
    this.menuContainerBgColor = “#cccccc”;
    this.childMenuIcon = “arrows.gif”;
    this.submenuXOffset = sx;
    this.submenuYOffset = sy;
    this.submenuRelativeToItem = srel;
    this.vertical = vert;
    this.items = new Array();
    this.actions = new Array();
    this.childMenus = new Array();
    this.hideOnMouseOut = true;
    this.hideTimeout = to;
    this.addMenuItem = addMenuItem;
    this.writeMenus = writeMenus;
    this.MM_showMenu = MM_showMenu;
    this.onMenuItemOver = onMenuItemOver;
    this.onMenuItemAction = onMenuItemAction;
    this.hideMenu = hideMenu;
    this.hideChildMenu = hideChildMenu;
    if (!window.menus) window.menus = new Array();
    this.label = ” ” + label;
    window.menus[this.label] = this;
    window.menus[window.menus.length] = this;
    if (!window.activeMenus) window.activeMenus = new Array();
    }
  • to post a comment
    JavaScript

    0Be the first to comment 😎

    ×

    Success!

    Help @sammiecat spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 6.18,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @nearjob,
    tipped: article
    amount: 1000 SATS,

    tipper: @meenaratha,
    tipped: article
    amount: 1000 SATS,

    tipper: @meenaratha,
    tipped: article
    amount: 1000 SATS,
    )...