1st level always expanded
Permalink Browser Info Environment
Hi Chris,
First time i've used one of your addon :-) pretty decent so far.
I'm trying to figure out how the menu can always be expanded? Any ideas?
Thanks
-Paul
First time i've used one of your addon :-) pretty decent so far.
I'm trying to figure out how the menu can always be expanded? Any ideas?
Thanks
-Paul
Type: | Discussion |
---|---|
Status: | Resolved |
Not exactly sure what you're trying to achieve?
If your trying to always display the sub menu you can do this by commenting out the jQuery file content, called 'am_menu.js'. Like this by including '/*' at the start of the file, and '*/' at the end. Like this....
/* $(document).ready(function() {initMenu();}); function initMenu() { // Accordion functionality $('#am_menu ul').hide(); $('#am_menu li a').click(function() { // \\ Change .hover to .click if you want the menu to expand on click and not hover // \\ $('#am_menu li ul li ul').show().addClass('am_deep_menu'); var checkElement = $(this).next(); if ((checkElement.is('#am_menu ul')) && (!checkElement.is(':visible'))) { $('#am_menu ul:visible').slideUp('slow'); checkElement.slideDown('slow'); return false; } else { $(this).unbind('click'); }
Cheers,
Chris