Get new jQuery plugins just once a week
October 23, 2012
TOC | jQuery Table Of Contents jQuery plugin
TOC is a jQuery plugin that will automatically generate a table of contents for your page with smooth scrolling on click.
It has got the following features :-
- Completely customizable.
- Click to smooth scroll to that spot on the page.
- Automatically highlight the current section.
- Extremely lightweight (744 bytes gzipped)
- Can have multiple on a page.
It also has the following customizable options :-
- selectors: elements to use as headings.
- container: element to find all selectors in.
- smoothScrolling: enable or disable smooth scrolling on click.
- prefix: for anchor tags and class names.
- onHighlight: function called when a new section is highlighted.
- highlightOnScroll: add class to heading that is currently in focus.
Created by Greg Allen
jQuery Table Of Contents plugin
Sign up for our weekly newsletter.
10 Most Amazing Couple Gifts
A comprehensive guide to couple gift Ideas for Valentine’s Day, Weddings, Anniversaries for your spouse, friend, fiance, boyfriend / girlfriend.
Take me there !
Continue to jquer.in