Hi guys
About a year ago I was on http://improveverywhere.com site (i think)
and
they had a cool feature which I am pretty sure was implemented using
jquery.

Basically there was a div which contains next and previous which in
the
layout appears about 150px down the page. The navigation div stayed in
line
whilst the whilst the user scrolled up and down until the user scrolls
past
the point where the top of the window hits the top of the div.
Normally at
this point the div would be lost up the page but here it stuck to the
top of
the window until the user scrolled back up again.

Note when i say stuck i mean stuck. Sometime you see some people who
have
elements which try and catch up was the window moves up and down but
it
never does a good job. This was 100% suck and didn't move from the top
until
the user scrolled backup where it was back inline.

It as if it was declared as the very child element within the body set
with
an absolute position and top = 0. Hence the div didn't "jitter" up and
down
trying to catch up with the users scrolling (note they must have done
more
than this because it worked fully in ie 6 as well as firefox).

In fact I think this is what happened from memory. I think they
dynamically
created a copy of the navigation bar and placed it as the first child
and
hid it until the window had hit the point where the top tops matched.
Then
showed the hidden cloned copy and hid the inline copy.

Hence I was wondering if anyone knows of the plug-in they where using
(or
that I could use) or how I could go about doing this.

Cheers
Anthony

Reply via email to