This module uses jquery to scan the contents of a page for a particular header tag. It then creates a table of contents using jquery which is now built in to Drupal v6. The toc is themable and i18n compatible.

Drupal 6 Table of contents module

Hiveminds Magazine | Drupal.st | Code browser | Drupal.se