PDA

View Full Version : [DHTML]Table of Contents Generator



blm126
09-29-2006, 03: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

ddadmin
10-02-2006, 06: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.

blm126
10-02-2006, 08: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.