Sorry, i didn't visit the thread for quite some time. You are right, i realized that. But instead of a timeout, i added another event handler. Like below,
PHP Code:
Event.observe(document,"mouseover",function(event){
var elt = $(Event.element(event));
if (!elt.descendantOf($('my_menu')) && $$('.selected_item').length>0) {
$('my_menu').select('ul').invoke('hide');
$$('.selected_item').invoke('removeClassName','selected_item');
}
});
This will track the mouseover events that occurs outside the drop menu and hide it.
Bookmarks