Results 1 to 3 of 3

Thread: [DHTML]Table of Contents Generator

  1. #1
    Join Date
    Sep 2005
    Posts
    882
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Default [DHTML]Table of Contents Generator

    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

  2. #2
    Join Date
    Aug 2004
    Posts
    9,890
    Thanks
    3
    Thanked 964 Times in 953 Posts
    Blog Entries
    15

    Default

    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.
    Last edited by ddadmin; 10-02-2006 at 05:28 AM.

  3. #3
    Join Date
    Sep 2005
    Posts
    882
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Default

    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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •