Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] Mouse direction


  • From: flavio at economisa.com.br (Flávio Gomes)
  • Subject: [Javascript] Mouse direction
  • Date: Tue Nov 14 07:47:12 2006

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@xxxxxxxxxx
>https://lists.LaTech.edu/mailman/listinfo/javascript
>  
>

-- 
Flavio Gomes
flavio@xxxxxxxxxxxxxxxx