Questions tagged [onmousemove]

The "onmousemove" event is a event that is triggered when the user moves the mouse pointer on an element.

Definition:

The onmousemove property is a JavaScript property which triggers the mousemove event when the user moves the mouse over an object.

Example Usage:

document.getElementById( '#example' ).onmousemove = function ()
{
    console.log( 'The onmousemove event has fired.' );
};

Important Links:

199 questions
4
votes
2 answers

What is the best way to get mouse position over form?

I want the best way to get mouse position for Form. I,m now set the values of mouse position in variables to get them in another methods "Like Form1_Click". Is there any better way to do that??. Thank you very much.
Wahid Bitar
  • 13,776
  • 13
  • 78
  • 106
4
votes
3 answers

How to determine if mouse is moving clockwise or counterclockwise?

I have an MFC appplication where the user have to move the mouse around a circle circonference with a dragging mouvement. I need to retrieve the number of degrees during this mouse drag "rotation" and I need to know if it's clockwise or…
pat.mtl
  • 101
  • 2
  • 3
3
votes
1 answer

Mouse on left of screen move image to left, same when mouse on right of screen

I'm trying to get an image that is around 1920x1200px to pan around on a 800x600px browser window. So if my mouse is on the top-left of the browser window the image is alined so it's top-left margins are on the top-left of the browser window. The…
Mint
  • 14,388
  • 30
  • 76
  • 108
3
votes
1 answer

Hide a bunch of Divs after user inactivity

I'm using Paul Irish's idle-timer plugin available here : http://paulirish.com/2009/jquery-idletimer-plugin/ . I want to hide some divs after 5 seconds of inactivity and show them back when user activity's catched . Here is my code…
3
votes
2 answers

clientX and clientY are offset from reall coordinates

I can't understand why the clientX and clientY properties are offset to their real positions. Here is my code: Hello World!