[Javascript] hide div in mouseout

Michael Borchers list at tridemail.de
Fri Dec 21 04:47:08 CST 2007


----- Original Message ----- 
From: "Matt Evans" <fatpratmatt at gmail.com>
To: "JavaScript List" <javascript at lists.evolt.org>
Sent: Thursday, December 20, 2007 9:06 PM
Subject: Re: [Javascript] hide div in mouseout


> Hi,
>
> Try this:
>
> div.onmouseout = function(event) {
>  if (checkMouseLeave(this, event)) {
>    hide();
>  }
> };

I just tested some variations and changed the name for 'event' into 'foo' 
f.e.:

div.onmouseout = function(foo) { bar(foo) } ;

This will ALSO RETURN THE EVENT!! Can somebody explain why?
Is it by default that function(whatever) always makes 'whatever' deliver the 
event "object"
or can there be other "return objects" too - if so: which ones?! 




More information about the Javascript mailing list