Re: ONMOUSEOVER vs. ONMOUSEMOVE

On Tue, 9 Sep 1997, Arnaud Le Hors wrote:

> E. Stephen Mack wrote:
> > 
> > In the HTML 4.0 draft for scripts [1], there is this description
> > of two intrinsic events:
> > 
> > >onmouseover = script
> > >     The onmouseover event occurs when the pointing device is moved over
> > >     an element. This attribute may be used with most elements.
> > 
> > The description of onmousemove, directly afterwards, is identical:
> > 
> > >onmousemove = script
> > >     The onmousemove event occurs when the pointing device is moved over
> > >     an element. This attribute may be used with most elements.
> > 
> > Is there any semantic difference between these two events?  If not, the
> > spec should say so, and I wonder why both events are included.  If there
> > is a different, the spec should define it.
> > 
> > [1] scripts.html#h-9.2.1.4
> 
> You're right this is confusing. I changed this to:
> 
> The onmouseover event occurs when the pointing device gets over an
> element. This attribute may be used with most elements.
> 
> The onmousemove event occurs when the pointing device is moved while it
> is over an element. This attribute may be used with most elements.
> 

So onmouseover is like mouseEnter? What about mouseExit then? Can you
explain the sequence of events you expect an element will get when a mouse
is just passing over it (as in enter at one end and leave at another)?

Confused,
  Alex.

Received on Tuesday, 9 September 1997 06:10:43 UTC