Sign in to follow this  

[web] Avoiding a jittery DHTML menu (HowTo?)

This topic is 4111 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, so I am finally redesigning my website, and I am using a DHTML menu, its actually a div tag with absolute positioning that gets repositioned by the body onscroll event. It works, however when scrolling the page, the menu jitters (jumps) to its new position in a very unnatural way, I take it this is because there is too much time between the scroll and the actual call to the onScroll event. Anyway, what I want to do is either have the menu seem static in its position (no jumping or jittering), kind of what it would look like if I was using frames, or have it instead of jump, move smoothly into the new position, is either of these posible? do I have other options to achieve the same effect? to look at what the problem is, check here, I am using Firefox, havent checked how it behaves on IE yet. Thanks!

Share this post


Link to post
Share on other sites
Unfortunately position:fixed doesn't work in Internet Explorer. You will need to keep your javascript as a backup. From memory IE won't fire javascript until you release a scroll bar either, so the result isn't great.

Share this post


Link to post
Share on other sites
Quote:
Original post by kwackers
Unfortunately position:fixed doesn't work in Internet Explorer.
It does, unless you are using an old (6 or lower) version.
The article tstrimp linked to offers a fix for older IE.

Share this post


Link to post
Share on other sites
Quote:
Original post by swiftcoder
Quote:
Original post by benryves
unless you are using an old (6 or lower) version.

Sadly, 6 still seems to be the current version, with 7 is not yet out of beta, and many casual users never upgrading to 6.5.
7 has had a release candidate for a while now, so I hope that won't be the case for much longer. IE7 will be delivered over Automatic Updates (marked as high priority).

Share this post


Link to post
Share on other sites

This topic is 4111 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this