tree.js

Converts <ul> into interactive tree.


Functions


Tree.assign(div, dir, ext, reformat)

This will do the thing. Div specifies a container in which your list lives. Dir is a directory containing important images, ext is their extension and reformat is a boolean value, specifying whether do you want to reformat (i.e. collapse all deep levels) the tree. Example:

Tree.assign("myDiv", "images", "png", true);