Is it possible that a menuitem of the js dropdown menu stays highlighted after clicking and loading the new html site?
Return to Recent Questions
Q:
Is it possible that a menuitem of the js dropdown menu stays highlighted after clicking and loading the new html site?
A:
The menu has only two states normal and mouseover. We'll try to add the pressed state in the future.
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 menu on a page, >= 0.
submenuInd - index of a submenu, >= 0.
itemInd - index of an item, >=0.
recursion = true/false - highlight parent items.
But notice, 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 PHP.
You can also set the correct
var pressedItem=1;
parameter on each html page.
Return to Recent Questions
Related:
- Sep 06, 2006 - The alighment of the dropdown menu is off to the right in Firefox...
- Sep 06, 2006 - The first item of the html drop down menu stays highlighted.
- Sep 11, 2006 - How can I hide my dropdown menu on print?
- Sep 11, 2006 - If I use doctype the settings of the submenus in javascript dropdown menu get lost.
- Sep 18, 2006 - Does the js menu work to load pages into an iframe?
- Sep 22, 2006 - Where do I add my "blahblah.htm" page links in js menu?
- Oct 06, 2006 - Where I can find data.js file for tree javascript menu?
- Oct 15, 2006 - Submenus doesn't position correctly in my javascript template.
- Oct 27, 2006 - In IE 6.0 and Firefox 1.5.0.4, the submenus of my dhtml dropdown menu are not visible
- Nov 29, 2006 - I am still struggling with multiple menus js on one page.
- Nov 30, 2006 - Does your html menu dropdown have the ability to have small text boxes on it?
|