I think gmail just tracks the scroll position on a timer and repositions a div
accordingly.
The best solution I've seen is at doctyper.
A simpler jQuery solution that moves an element onscroll: link
rpetrich
2009-04-13 05:57:27