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:37:17
 
 
À
21/03/2016 00:52:31
Information générale
Forum:
Javascript
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01633406
Message ID:
01633431
Vues:
33
>I have two div next to each other. When the second div is reached, I need to execute that code prior to the code that leaves the other div.
>
>So, I have onmouseover and onmouseout events. However, the onmouseout event of the first div always executes before the onmouseover of the next div.
>
>So, I need to find a way to structure that so the onmouseout of the first div will be smart enough to know it sits over the second div so I can cancel some code in the onmouseout of the first div in such circumstance.

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?
----------------------------------
António Tavares Lopes
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform