Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Cyril on May 22, 2008 11:28
open dhtmlx forum
Css on active menu

Hi,

I 'm trying to display a different font color on the active item of the Menu without success. How I can do that simply ?

Thanks
Answer posted by Support on May 23, 2008 03:22

The simplest way - redefine it in css

 dhtmlxmenu.css
          .menuButtonover{
                    ...
          .menuButtonSecondover{
                    ...

Answer posted by Cyril on May 23, 2008 11:23

Thanks for your quick response as usual,

Actualy, I want want to change the color not on the mouseover mouseout but on the selected item of the Menu.

the idea is to keep track where the user is in the menu.

Thanks

 

 

 

Answer posted by Support on May 26, 2008 02:02
When menu item selected - onClick event generated, you can attach some custom code to it, similar to next

menu.setOnClickHandler(function(id){
      menu.getItem(id).topNod.style= ....
      menu.getItem(id).textTag.style= ....
});