/stickify

jquery ui plugin that makes divs stick to the top of the page when you scroll past them

Primary LanguageJavaScriptMIT LicenseMIT

Stickify jQuery UI plugin
by Andrew Kim

This plugin turns a div into a sticky div. When a user scrolls past this sticky div, it will float above scrolling content so it always stays in the page view.

An example would be the toolbar in gmail.

Usage: 

$("#divid").stickify();
$("#divid").stickify({offset: 200}); // if you want to offset the point of sticking

Depends on:
jquery 1.6.2
jqueryui/1.8.14

Demo:
http://wookimiii.github.com/stickify