jQuery.pageMenu

jQuery.pageMenu plugin can help you to generate table of page contents based on the headers (tag “H1? – “H6?).

Use
$(function() {
$(‘h1’).pageMenu({title: ‘Меню страницы’});
});