How can I detect the browser window position?

I saw a couple of interesting demo's that made content react to the window being dragged with the mouse, but I can't seem to find them anymore to peek at the code. A couple of w3 and www searches got me nothing. Does anybody know what I'm talking about?