[Javascript] Mouse direction

Diego Chagastelles dchagastelles at gmail.com
Tue Nov 14 08:14:46 CST 2006


thanks

On 11/14/06, Flávio Gomes <flavio at economisa.com.br> wrote:
>
> by saving the old event.x and event.y and then using a simple function
> compare it to the "new" x and y on the onmousemove event
>
> read about the mousemove event here. pretty important:
> http://www.quirksmode.org/js/events_mouse.html
>
> ps.: my keyboard is broken, i'm using a virtual one! =D
>
> Diego Chagastelles escreveu:
>
> > I would like to detect the movement direction of the mouse pointer.
> > If it is going up, down, right, left . How is the best way to do this
> > feature?
> >
> > Thanks
> >
> >------------------------------------------------------------------------
> >
> >_______________________________________________
> >Javascript mailing list
> >Javascript at LaTech.edu
> >https://lists.LaTech.edu/mailman/listinfo/javascript
> >
> >
>
> --
> Flavio Gomes
> flavio at economisa.com.br
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20061114/5c027e75/attachment.htm>


More information about the Javascript mailing list