August 1999
Intermediate to advanced
1488 pages
72h 53m
English
Event.MOUSEMOVE
The MOUSEMOVE property of the Event object indicates when the mouse cursor is moved by the user.
Listing 7.230 shows how the MOUSEMOVE event is used to determine when the user is moving the mouse. As the mouse cursor is moved, the coordinates are displayed in the text boxes.
<html> <head> <title>Using Event.MOUSEMOVE</title> </head> <body> <script language = "JavaScript"> <!--Hide // sets up the window to capture MOUSEMOVE events window.captureEvents(Event.MOUSEMOVE); // function that handles the specific event. The evnt parameter refers to // the event object. The function sets the x ... |
Read now
Unlock full access