Mike,
see inline
Wow, that is a different view of browser dependence than any other web programmers I know. ;>)
To me browser dependant means that I have to detect the browser (sniffing)
in use then use different code fragments based upon the
browser, e.g., if(document.layers) or if(document.all)
Well, by your deifnition everything would be browser dependant - theres
hardly anything you can do with the same code for evey browser. I was
addressing your initial comment that this method is "more browser dependant"
than the trasnsparent gif method. Clearly it isnt - both methods need object
detection and 3 different methods depending on browser. Of course both
methods will work equally well on all 4+ browsers.
I'm curious, you said that there are three ways to capture an event, what
are they? I only know of one, define the event handler on
the object. There are numerous ways to define the handler on the object,
however.
Fair point - I should have said 3 different methods to capture an event and
then track where the mouse ends up. Of course for modern browsers we can
just define the handler on the object - for NN4 we need to explicity capture
the event first. Having said that there's no point just capturing an event
we need to do something with it

Hence my 3 methods comment.
BTW, I took a look at your experiment and it is an interesting
implementation. But it is not what you suggested, "... attach an
onmouseout to the div and detect where the mouse ends up when the event
fires. If it's still inside the div do nothing - if it ends
up outside the div hide it." Based upon this statement, I assumed that
you were going to compute the location of the mouse at the
There's no need to actually compute the mouse location ( I assume you mean
its x/y coordinates) - we just need to find out wether the mouse is still
in the div (in which case ignore the event) or wether its moved outside the
div (in which case hide the div). It's precise location is irrelevant. As
you know an onmouseout on a div will fire when you mouseout out of anything
within the div - I think it was Jim's book that built a menu this way. The
downside of course is the mouseout will fire repeatedly as the mouse moves
around within the div and cause the menu to flicker repeatedly on and off -
not good
Jon