Jump to content
  • Advertisement
Sign in to follow this  
Kwizatz

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

This topic is 4323 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
Advertisement
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 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.

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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!