View Full Version : simple tree menu open/close only on +/-

06-24-2009, 09:03 PM
1) Script Title: Simple Tree Menu

2) Script URL (on DD): http://www.dynamicdrive.com/forums/register.php?a=act&u=40829&i=3903230cb1e9af954b9a8b79da3344e67967295c

3) Describe problem: The underlying structure of the simple tree menu is an unordered list. In my list, each list item is linked to a page within my site, even the ones that have sub-list under them. Is it possible to restrict the open/close action of the script to only the +/- graphic while maintaining the normal function of the text links. So, the only way to open/close sub-lists would be to click on the +/- graphic. When a text link is clicked on, the user goes directly to that page and the sub-list does not open up.

It is a little disconcerting for users to click on a link that takes you to a page, but before you leave the current page, something opens up directly under where you just clicked.