Many users have asked how they can control the position of submenus that are generated using the Fireworks 4 Pop-up Menu feature. The code that controls the horizontal and vertical position of the submenus relative to their main menu items is found in the fw_menu.js file. This TechNote will explain how you can change the position of your submenus using the code provided. In Fireworks MX, submenus can be positioned using the Position tab of the Pop-up Menu Editor. See Fireworks MX Pop-Up Menus (Fireworks Article) for more information on Pop-up Menus in Fireworks MX.
This TechNote assumes that you already know how to create Pop-up Menus in Fireworks 4 and that you know how to export Fireworks HTML and Images to a defined Dreamweaver site directory structure. You can learn how to create Pop-up Menus by choosing Help > Lessons and clicking on Lesson 5 in the Flash movie that appears: "Creating a Pop-up Menu" to learn how to create Pop-up Menus. Also you should be somewhat familiar with JavaScript, and should be able to edit the code in the fw_menu.js file with confidence.
This TechNote will explain:
- How to set the horizontal positioning of the submenus globally.
- How to set the vertical positioning of the submenus globally.
- How to set individual horizontal positioning for submenus.