View Full Version : [DHTML]Table of Contents Generator

09-29-2006, 02:24 AM
1) CODE TITLE: Table of Contents Generator

2) AUTHOR NAME/NOTES:Brady Mulhollem

3) DESCRIPTION: Small script to generate a table of contents based on the header tags in a div. More info on the demo page.

4) URL TO CODE: http://www.webtech101.com/index.php?page=toc-generator

10-02-2006, 05:20 AM
A simple but elegant script. I'd perhaps have the TOC expanded by default, since the idea of an in page TOC script IMO is to get to a certain section on the page as quickly as possible.

10-02-2006, 07:52 PM
Actually, the expanding part is something I added for my site, the script will not generate that. It ouputs nothing but the list of headers. I have adjusted the page to include a better demo.