General information
Category:
Coding, syntax & commands
>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.
The mouseout event is going to fire before any events on the new target. - maybe set a timer in the handler, set a flag on the mouseenter event of the next div then check this when the timer expires ?
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only