|
|
How I can make the current javascript vertical menu item to be highlighted?
Return to Recent Questions
Q:
When I stay on one page (for example "Purchase") àlso must have the
menu-point "purchase" another color or font. How can I make this with my javascript vertical menu?
A:
Try to set pressed item.
Please, check the following parameter
var pressedItem=-2;
This parameter 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-menu.
DHTML Menu v3.0 saves it state after the
reloading of the page.
You can set a pressed item using Javascript API:
function dm_ext_setPressedItem (menuInd, submenuInd, itemInd, recursion)
Sets a current pressed item.
menuInd - index of a javascript vertical menu on a page, >= 0.
submenuInd - index of a submenu, >= 0.
itemInd - index of an item, >=0.
recursion = true/false - highlight parent items.
To use dm_ext_setPressedItem() you should know ID of selected item and subitem.
You can't get this ID after you reload your page. That is why you should write your own code on server side script.
You can also set the correct
var pressedItem=1;
parameter on each html page.
Return to Recent Questions
Related:
- March 13, 2009 - I cannot see javascript vertical menu on my pages.
- March 29, 2009 - How could I call a script instead of specifying a link in javascript vertical menu myspace?
- Apr 16, 2009 - The popup menu gives me the top level of the javascript vertical menu...
- May 03, 2009 - Will I have issues with the key in javascript vertical menu if my site has multiple host headers?
- May 21, 2009 - There seems to be a 'glitch' with my transparent javascript vertical menu in Firefox.
- Jun 07, 2009 - Is it possible to create the following functionalities in your javascript vertical menu?
- Jun 24, 2009 - I'm trying to position my javascript vertical menu inside absolutely positioned DIV.
- Jul 11, 2009 - We want to know how to make the background on your javascript vertical menu to be transparent?
- Jul 24, 2009 - Is there a way to keep global css collapse item highlighted?
- Jul 28, 2009 - Is it possible to have javascript vertical menu items act like regular hyperlinks?
- Aug 14, 2009 - How I can set the font and backcolors in javascript vertical menu using the hexidecimal number?
|