[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
www.dhtmlgoodies.com • View topic - Open only second level of tree
Page 1 of 1

Open only second level of tree

PostPosted: Wed Feb 07, 2007 11:10 pm
by skinzz
Hi,
I am not very good at javascript at all, but I love this webiste! I would like to know how to go about opening just the level below the root node of the tree.
I don't want to use expandAll and I don't want to collapseAll.

Also, if I may ask two questions, how would I change the image of only the nodes that had no children?

I have been working on this a bit and can't figure it out. Thanks so much!


EDIT: I answered my first question by using showHideNode. It was a little confusing to me at first because my ID's are like 'node0' instead of '0.'
Still can't get the ones with no children to show a different image.

PostPosted: Thu Feb 08, 2007 5:08 pm
by FickD