I feel a bit embarrassed asking an HTML/JavaScript question, but this is tough because I don't know exactly how you'd describe this effect easily.
What I'm looking to do is create a div that moves along with the user's scrolling - exactly how a fixed div does - but that only does so within the confines of a certain space. I have a site design that's split into two pieces. I want the div to move within the top space, stop when it gets to the bottom space. After that it quits moving down.
How would I get this to work? The problem is, I'm not at all familiar with using JavaScript to manipulate physical location, so I'm not certain how exactly I'd make this solution. And, to the best of my knowledge, this isn't something that HTML/CSS can do on its own: fixed is all-or-nothing.
Note: Dimension type calculations vary widely among browsers, so using a library like jQuery dimensions is quite helpful.