|
From: creativemoon on 17 Apr 2008 16:20 Hi All, I created a vertical pop-up menu from Fireworks MX 2004. I inserted it into my Dreamweaver file and it works great. However, I want the white background of the pop-up menu to be have a 40% opacity. I know I have to add a bit of coding to the mm_menu.js file and I've tried every conceivable bit of coding I can think of but still no luck. Does anyone know what to write and where to write in the code? Thanks in advance for any help! Below is the section of code that I've been working with. I assumed the opacity coding would go here some where. /** * mm_menu 20MAR2002 Version 6.0 * Andy Finnell, March 2002 * 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(); }
From: Murray *ACE* on 18 Apr 2008 06:44 > Dreamweaver file and it works great You think? Read this - http://www.losingfight.com/blog/2006/08/11/the-sordid-tale-of-mm_menufw_menujs/ -- Murray --- ICQ 71997575 Adobe Community Expert (If you *MUST* email me, don't LAUGH when you do so!) ================== http://www.projectseven.com/go - DW FAQs, Tutorials & Resources http://www.dwfaq.com - DW FAQs, Tutorials & Resources ================== "creativemoon" <webforumsuser(a)macromedia.com> wrote in message news:fu8bev$67q$1(a)forums.macromedia.com... > Hi All, > I created a vertical pop-up menu from Fireworks MX 2004. I inserted it > into my > Dreamweaver file and it works great. However, I want the white background > of > the pop-up menu to be have a 40% opacity. I know I have to add a bit of > coding > to the mm_menu.js file and I've tried every conceivable bit of coding I > can > think of but still no luck. Does anyone know what to write and where to > write > in the code? Thanks in advance for any help! > > Below is the section of code that I've been working with. I assumed the > opacity coding would go here some where. > > /** > * mm_menu 20MAR2002 Version 6.0 > * Andy Finnell, March 2002 > * 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(); > } > > >
|
Pages: 1 Prev: Newbie ? > make background disappear Next: Can't install Fireworks CS3!! |