Board Logo

Return at begining and Collapse menu
lev - 11/26/2003 at 04:30 PM

Hi

Is there any way to collapse whole single or multiple menu from URL?

Situation is like that I need a simple html regerated button from which a user after navigation will be able to return to home page and see the page as it was at the begining. (collapse all opened nodes).


rock - 12/1/2003 at 08:33 AM

You could do it easily via Tigra Tree Menu PRO open API using collection of tree nodes (a_nodes). If you need assistance please contact us at http://www.softcomplex.com/support/


lev - 12/6/2003 at 11:52 AM

Thank you so much!!!

We have done it this way:

1)

Changing:

<script language="JavaScript">new tree (TREE_ITEMS, tree_tpl);

to:

<script language="JavaScript">var xx=new tree (TREE_ITEMS, tree_tpl);


2)

Adding onClick to the image or text:

<A href="#"><IMG src="image.gif" onClick="xx.a_nodes[1].open(true);></A>

..[2], [3], [4], and so on, depending on amount of nodes.

That's it! Opened nodes are closing after clicking on image or text.


Thanks again for your help!


Softcomplex: http://www.softcomplex.com/
Back to forum: http://www.softcomplex.com/forum/