Saturday, August 1, 2009

[jQuery] Re: Default Menu

http://users.tpg.com.au/j_birch/plugins/superfish/#options

use pathClass for your "current" . Can assign any class name you want then add it to options in constructor

As for sfHover class, it's reserved for script to manage CSS when sub levels are open, sffHover will be added to li's. Wouldn't recommend adding it manually

For single element different than others : create an addClass() and make any class name you want and style it accordingly

jan wrote:
Hi!  I'm trying to show the selected menu with a different color background when a user clicks on a particular main menu item. This works with a ul that does not have child items on it. But ul's with child elements the css does not seem to work and seemed overridden by javascript.  What i did was on the program logic that automatically produces the unordered list of menu items, I inserted a class 'sfHover' for li items that is equal to the current page. Again, this works on the menus that does not have child elements.  Is there any possible way I can configure a selected menu item showing with a different backround color from the rest of the menus?  By the way, superfish suckerfish is totally awesome! Keep up the good work!    

No comments: