How does one go about hanging the the JavaScript so that a vertical menu remains selected
Return to Recent Questions
Q:
How does one go about changing the parameter or the JavaScript so that a vertical menu selection
stays 'on'? In other words, the vertical menu remains selected, perhaps in a
background color that shows the user this menu choice is selected and the user is in the selected menu area.
A:
To save your navigation path you should set the following parameter:
var saveNavigationPath = 1;
The menu keeps items highlighted during menu navigation.
0 - disabled, 1 - enabled (default).
You can highlight menu items by default in two ways:
1) Set the pressed item on each page idividually using the following parameter:
var pressedItem = -2;
The toggle mode. Sets an index of an item that will be highlighted by default.
-2 - the toggle mode is disabled;
-1 - the toggle mode is enabled, but no items highlighted by default;
0,1,2,3,... - index of highlighted item in a top-level menu.
- delete var pressedItem=1; parameter from your data file
- set correct parameter on each page before you call data file, for example:
<noscript><a href="http://deluxe-menu.com">Javascript Menu by Deluxe-Menu.com</a></noscript>
<script type="text/javascript">var dmWorkPath = "menudir/";</script>
<script type="text/javascript" src="menudir/dmenu.js"></script>
<script type="text/javascript">var pressedItem=2;</script>
...
<script type="text/javascript" src="menudir/data.js"></script>
2) Set the pressed item/subitem using dm_ext_setPressedItem () function.
Please see more info here:
http://deluxe-menu.com/highlighted-items-sample.html
Return to Recent Questions
Related:
- Sep 02, 2006 - Little vertical spacers between menu items in the drop down menu.
- Sep 06, 2006 - Can't see my javascript vertical tree menu in FireFox.
- Sep 15, 2006 - Are vertical menus also supported? I don't see any in the javascript menu examples.
- Sep 16, 2006 - I need to be able to highlight the selected menu item of the html tree menu.
- Oct 01, 2006 - When I click on link of my vertical drop down menu no file is loaded!?
- Oct 12, 2006 - Can I create a scroll vertical menu on the right side and the subnav popout on the LEFT?
- Oct 16, 2006 - I need the sub menu of the drop menu to be vertical instead of horizontal
- Nov 10, 2006 - I can't make my vertical dynamic menu work in at Dreaweaver template - why?!
- Nov 25, 2006 - If a user selects vertical menu in the upper frame he get the menu that is associated with...
- Dec 11, 2006 - How to add the new items to the dhtml vertical menu without using two data.js files?
- Dec 24, 2006 - Images don't appear in my vertical menu with horizontal submenus.
|