Feed Sign in with OpenID OpenID

Simon Willison’s Weblog

Tree from unordered list

The amazing tree generator (via webgraphics, who in turn got it from CSS Discuss). This is just the kind of DHTML I really like. Place a simple nested unordered list in your document and this external javascript can use the DOM to convert the list in to a hierarchical outline style tree, with each node expandable to show the child members. It looks great and works in both IE and Mozilla—I haven’t tested it in other browsers but it should degrade gracefully, leaving them with a static nested list.

This is Tree from unordered list by Simon Willison, posted on 13th June 2002.

View blog reactions

Next: Mozilla alpha

Previous: Charity and Amazon

1 comment

  1. Hi, Thais concept is very good. Please let me know how to use different bullet image for second level UL

    Kalpana - 11th August 2004 12:47 - #

Comments are closed.

Previously hosted at http://simon.incutio.com/archive/2002/06/13/treeFromUnorderedList

A django site