config className
2005/02/16 10:05
Viewed 6289 times
Replies: 1/2

Great control!

I was wondering if you could help me with trying to set up two menus on the same page. I have been able to get the menus running fine but now I want the menus to have different appearances. I am trying to use the config variable className to set the second menus stylesheet class to a unique name. How do I then set up the style sheet to us this name? Is there an example?

I also noticed that the skins.html example on your site does not seem to work for me. i.e. the "Open" item should be green but it has the normal brown color when I view it. (I am using version 2.4).

Thanks again, really nice job, Rob Reiss

Re: config className
2005/02/18 03:54
Viewed 9061 times
Replies: 1/1

After buying the control and looking at the source I was able to figure it out (it was pretty simple, I just didn't fully understand how css worked).

If you want to have two menu's with different styles call setup twice with one of the calls setting the className config variable:
DynarchMenu.setup('menu'); DynarchMenu.setup('menu2', {className: 'menu2class'}

Then in your skin-menu-xxx.css file you can then change the style of the second menu by statements like:
div.menu2class
{
background-color: #00FFCC;
}
div.menu2class table tr td.active
{
background-color: #FF0000;
color: #800040;
} etc.

Thanks again... best menu control I have seen.

last
Re[2]: config className
2005/02/18 09:14
Viewed 11222 times
Replies: 0/0

Thank you for buying our product. And I'm glad you like it! :-)

I would have answered your query today, but now I suppose it's too late—sorry for that! But anyway, I'm happy when my customers are able to find solutions themselves—it means that the product is well designed and easy to use. :D

Best wishes!

last
Google