Very clever! Thanks!

Walter

On Oct 3, 2008, at 12:27 PM, Hector Virgen wrote:

> In my experience I've had success using two different mouseover events
> instead of a mouseover/mouseout combination.
> The first mouseover observer is a simple one:
>
> $('nav').observe('mouseover', function(event) {
>     $('nav').show();
> });
>
> The second observer observes the entire document and checks to see if
> $('nav') is found by Event:findElement. If it's not found hide the  
> nav.
>
> document.observe('mouseover', function(event) {
>     if (!event.findElement('#nav')) $('nav').hide();
> });
>
> This has worked for me in IE and FF but I think cross-browser  
> mouseleave /
> mouseenter could be better.
>
> -Hector
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to