>You need to capture the onmouseout event of the element, then start a
>timeout, then fire the action to hide the item.
var timer
Event.observe('divmenutop', 'mouseout', function(){
timer = setTimeout('function that dose the hiding', 2000 );
})
>Second, simple timeout is not quite enough. If you mouseout and them
>mouseover before timeout triggers, menu will suddenly disappear right
>under your mouse. This is not cool - we have to check if mouse is over
>container or not (simple flag is one of the solutions).
Event.observe('divmenutop', 'mouseover', function(){
clearTimeout( timer );
})
Try this. this is what I do in a similar situation.
--
Edward Grant
[EMAIL PROTECTED]
RPGA #342155
CAMARILLA #US2002022579
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---