Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Detecting new div before leaving the other one
Message
De
21/03/2016 13:42:59
 
 
À
21/03/2016 13:37:17
Information générale
Forum:
Javascript
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01633406
Message ID:
01633432
Vues:
36
>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.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform