I created a plugin, jQuery Stick ‘em, to allow items to be “sticky” but only within a container.