Mar
12
Advnaced AJAX YUI Accordion Navigation
March 12, 2008 |
I have created a simple prototype that demonstrates the usage of Yahoo! UI, I created an AJAX application prototype that uses Arrordion Menu as the navigational Menu. The accordion menu is based on Yahoo! developer Heger Wang’s accordion menu, but with some bug fixes in Heger’s script.
![]() |
The demo page is at:
http://www.lab.highub.com/yui/accordion-menu/adv2/
Source code can be downloaded at:
http://www.lab.highub.com/yui/accordion-menu/adv2/download.zip
Enjoy!
Similar Posts
Comments
5 Comments so far




































a really nice way to use accordion menu.
I like the ability the ability to edit menu options including timing and easing that Hedger’s original menu provided. Also missing is the ability to open specific menus on page load.
Curious to know what bugs you found.
Hi, Chad, the bug in Hedger’s original menu is when under one category, if there is no subcategory, the menu will still open a bit and then close in IE. This ‘jerky’ problem is caused by IE, the empty dd should have a height of zero, but IE reads a number. So I set dd height explicitly as dd.style.height = ‘0′;
have you discovered this problem?
Ahh, no, I hadn’t run into that. Makes sense.
And for the ability to open specific menus on page load, you can still use that function for unobtrusiveness. When visitors have their JavaScript turned off, they will be able to go to the page with the specific menu opened.