How can I get a fixed-position menu like slashdot's comment filtration menu
Posted
by
pkaeding
on Stack Overflow
See other posts from Stack Overflow
or by pkaeding
Published on 2008-09-11T14:09:01Z
Indexed on
2011/02/09
15:25 UTC
Read the original article
Hit count: 274
Slashdot has a little widget that allows you to tweak your comment threshold to filter out down-modded comments. It will be in one place if you scroll to the top of the page, and as you scroll down, at some point, where its original home is about to scroll off the page, it will switch to fixed position, and stay on your screen. (To see an example, click here.)
My question is, how can I accomplish the same effect of having a menu be in one place when scrolled up, and switch to fixed position as the user scrolls down? I know this will involve a combination of CSS and javascript. I'm not necessarily looking for a full example of working code, but what steps will my code need to go through?
© Stack Overflow or respective owner