I'm interesting in dhtml menue ability to display a different color word on a menu item when the site is on that selected page
Return to Recent Questions
Q:
I'm interesting in dhtml menue ability to display a different color word on a menu item when the site is on that selected page
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.
Return to Recent Questions
Related:
- Aug 28, 2006 - Horizontal at level 1, Horizontal at level 2, then vertical?
- Sep 29, 2006 - I tried to use javascript function with the "Title item" of my javascript tree view.
- Oct 28, 2006 - Subitems of the mouseover menu don't close when the mouse goes away...
- Nov 05, 2006 - The font color doesn't change when I roll over the dhtml side menu
- Nov 23, 2006 - Can we right justify the secondary javascript navbar?
- Dec 04, 2006 - With the licensed .js files of menu dhtml the status bar on IE shows "Error on page".
- Dec 08, 2006 - I created a custom error page for a site, but the Menu JavaScript would not display.
- Dec 10, 2006 - On IE for Windows, the javascript floating window disappear as I roll over them
- Dec 27, 2006 - We want to know if we can make the background on your menu html code transparent?
- Jan 13, 2007 - I want my simple drop down menu appears centered at the top the page. Is it possible?
- Jan 29, 2007 - I want to have a different font and color for my javascript hide submenu items
|