Hi, Try this: div.onmouseout = function(event) { if (checkMouseLeave(this, event)) { hide(); } }; I did a quick test and it seemed to work fine in FF2 and IE7 here Thanks, Matt