You don't even need JS for this, you can simply apply position: fixed to the selector instead of position: absolute and it will stay in a fixed position on the page.

jezjsa
—
2011-12-06T11:04:34Z —
#3

does that work in all browsers? thanks for the reply though

chris_upjohn
—
2011-12-06T11:49:21Z —
#4

It doesn't work in IE6 but as a fellow web developer i don't support IE6 anymore unless a client specifies it, there are plenty of reasons why not to support it anymore but the main reason can be found at http://www.ie6countdown.com/