>You might try a workaround where the div1.mouseout() handler execution is delayed for a couple of milliseconds and div2.mouseover() sets a flag; div1.mouseout() can check for this flag to decide what to do; the issue is how you make sure this flag is reset.
Can't slow down the process as, the reason to do this, is exactly to make things faster.
>If you can make sure that no other elements sits between the 2 divs (eg. by overlapping), you can try to use
event.relatedTarget in div2.mouseover():
>
>jQuery('#div2').mouseover(function(ev){
> if (ev && ev.relatedTarget && ev.relatedTarget.id && ev.relatedTarget.id === 'div1') ev.relatedTarget.method();
> ...
>});
>
Yes, that's the initial code I had. But, actually, this was on the onmouseout event. I will check this out again and let you know.