Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detecting new div before leaving the other one
Message
From
22/03/2016 06:00:42
 
 
To
21/03/2016 13:42:59
General information
Forum:
Javascript
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01633406
Message ID:
01633478
Views:
38
>>Just to help me to better understand the problem: you want the execution order to be 1) second.onmouseover(); 2) first.onmouseout(). What if first.onmouseout() leaves to another object, and not to second object? Can it be disregarded or must it be executed nonetheless?
>
>Both div are linked together. So, basically, I need to simulate a mouseout on one of the two would be as if it would have been on either one.
>So, basically, no matter on which div, it has to be smart enough to detect that the other div is visible or not.
>As both div are one under the other one, like two rectangles, with no space between, when the mouseout on the first one is done in the bottom direction, as it would be over the next one, I need to cancel the mouse out event.
>Using the coordinates is not good. e.clientX and e.clientY would not be returned all the time if the mouse is moving too fast.
>So, I need a way to detect if a div is under the mouse, and that would probably be the best approach.

Hi Michel,

As the mouseout/over events bubble, have you considered letting the parent of these 2 child divs process these events?
Thierry Nivelet
FoxinCloud
Give your VFP application a second life, web-based, in YOUR cloud
http://foxincloud.com/
Never explain, never complain (Queen Elizabeth II)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform