Actually, it's not going to work the "proper" way : )

First of all, currently menu hiding is done via CSS (visibility:
hidden on bottom container). This means that once you mouseout, even
though "hideMe" will get triggered, menu will still disappear right
away (due to hover rule declared in a stylesheet).

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).

Third, to be completely unobtrusive, the best solution would be to
have CSS driven behaviour and replace it with JS one if JS is
available.

Something like this should clear current css styles:

$$('head')[0].insert('<style type="text/css">.menu ul ul {visibility:
visible}</style>');

and then just hack away all you want


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to