Thanks, Anita. I found an automated solution using jQuery: 1stwebdesigner.com/css/jquery-plugin-smooth-scrolling/… I had to modify the JS file for it to detect id being undefined but it works well. It automatically generates a TOC for all H1, H2, H3 tags within the main content area of the page layout. I've added a custom True/False dropdown to the page layout to let the user enable/disable the TOC for pages. There's a display:none DIV on the page, floated left of the page heading. If the field is set to True, it shows the DIV and injects the TOC into it.
–
Alex CAug 22 '11 at 11:22