Chapman Siu
Table of Contents generator. Influenced by Janko's Table of Contents using Jquery
This script creates a table of contents based on <h1>
to <h3>
tags of a webpage. It auto generates id's for linking.
Check out the example provided in example.html.
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script>
<script src="jquery.tableofcontents.min.js" type="text/javascript" charset="utf-8"></script>
And all the script:
$(document).ready(contents);