Ajax Design:
Dynamic Table of Content

Abstract Project Description Implementation Code

 


Richard H. Nilsson, November 9, 2007

Abstract

Breaking up long content articles into separate pages can be tedious, as is presenting long content and forcing the reader to scroll more than a screen height. It would be much easier to maintain an article with all content on one page, but present the content sections through a dynamic table of contents for readers.

This article describes (and uses) a method implemented in CSS and ECMA Script (JavaScript), of hiding and revealing content, thereby minimizing scrolling to view long content but allows the author to keep all the content in one easily-maintained HTML document.

 



Top