JavaScript
Article

Easy jQuery Pagination with jQuery Sausage

By Sam Deering

jquery-pagination

Hi guys, I stumbled upon a pretty easy to use jQuery pagination plugin called jQuery Sausage (i’m sure there is a good joke in there somewhere!). It basically puts a page pagination on the right hand side of the page like a pdf viewer but using jQuery then when you scroll the page it changes on the right. The sausage items on the right also act as a navigation and link to thier sections.

Demo 1
Download

Core Usage

jQuery(document).ready(function($) {
    $(window)
        .sausage() ;
});

Basic Usage

jQuery(document).ready(function($) {
    $(window)
        .sausage({
            content: function (i, $page) {
                return ''
                    + $page.find('.anchor').first().text()
                    + '';
            }
        })  ;
});

Free Guide:

7 Habits of Successful CTOs

"What makes a great CTO?" Engineering skills? Business savvy? An innate tendency to channel a mythical creature (ahem, unicorn)? All of the above? Discover the top traits of the most successful CTOs in this free guide.

No Reader comments

Recommended
Sponsors
Because We Like You
Free Ebooks!

Grab SitePoint's top 10 web dev and design ebooks, completely free!

Get the latest in JavaScript, once a week, for free.