Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4347794
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T12:21:18+00:00 2026-05-21T12:21:18+00:00

I have 3 divs containing each other like a Matryoshka doll . For all

  • 0

I have 3 divs containing each other like a Matryoshka doll.

For all divs, I’ve a function bound the mousenter event. Now moving the mouse slowly from the bottom, and entering into layer three will result in the following events:

  1. Mouseenter layer one
  2. Mouseenter layer two
  3. Mouseenter layer three

Which is perfect, and the expected result, as you need to enter layer one first, in order to enter layer two, etc.

However if I do the same with a quick mouse movement, the order will be unspecified, for example:

  1. Mouseenter layer two
  2. Mouseenter layer one
  3. Mouseenter layer three

Which doesn’t make too much sense to me – how can your mouse enter layer two before entering layer one?

Anyway, the question is: is there any way to force jQuery or javascript in general to fire these events in their natural order? If no, can you suggest me a workaround, like somehow post sorting the events from my event handler function, and postponing those that were prematurely called?

Test code is posted at http://jsbin.com/ibepu6/4/

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T12:21:18+00:00Added an answer on May 21, 2026 at 12:21 pm

    Normally mouseenter and mouseleave events are microsoft based events, jquery make them useable in all browsers using other function to create this effect… First have a loook at and test the demo in jquery event page. I do not check the jquery source, but there is two diffrent event ordering mechanism in javascript as far as i know… Event capturing and event bubbling…

    This document is not new, but it describes the basics whish you need. This is an older document about mouse events and how do they executed…

    So check jquery source and see how mouseenter and mouseleave works. As i said before, it is not the basic function that only runs on IE, but a simulation that acts just like mouseenter and mouseleave events by using other javascript functions… Thats how jquery enebles these two Microsoft event available to all browsers…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have 4 divs next to each other, each containing a link. I want
I have multiple DIVs containing an image in each. When I rollover these DIVs,
So I have 3 divs contained inside a containing div like such: <div id=contain>
I have a slider-like widget which is basically, a div of sub-divs containing some
I have a wrapper div containing 10 thumbnail divs each of which contains 10
I have a layout with a set of divs each containing three fields in
I have one containing div with two child divs. All divs are the same
OK so what would happen if I have 2 divs (one containing text, the
I have 2 divs, 70% and 30% widths, within a 100% width containing div.
I have an containing a list of divs that jQuery turns into progress bars.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.