File
Here's To
The Crazy Ones
The Misfits
The Rebels
The Troublemakers
Edit
The Ones
Who See
Things
Differently
View
They're
Not Fond
Of Rules
Special
Stay
Hungry
Stay
Foolish
? Konigi
Konigi Konigi Art Art Photos Photos Design Design Blog Blog
Automatically generate table of contents using jQuery

Automatically generate table of contents using jQuery

Janko at Warp Speed demonstrates a technique using jQuery to provide a navigable table of contents menu using the headings in your page content. I particularly like the method he's come up with for displaying headings to show the proportion of content for each section relative to the whole. I think you could do some nice styling to display the blocks as small multiples of proportion and scale in the margin. Nicely done and would work well with longer content, e.g. wiki pages.

http://www.jankoatwarpspeed.com/post/2009/08/20/Table-of-contents-using-jQuery.aspx