In our last article we left off with the OnKeyUp function, which is triggered when a user releases a key on the keyboard. We will continue discussing the various JavaScript events in this article, and hopefully finish them in the next tutorial. So grab yourself some coffee and let’s get to work.
OnLoad and OnMouse JavaScript Events - OnMouseMove (Page 3 of 6 )
The OnMouseMove event is triggered when the user moves their mouse over a specified area. In the sample below, we use this to change the image. When the user rolls over the text "Move your Mouse Here to Change the Image," the program switches yourimageone to yourimagetwo.
(Note: For this to work in your browser, you must point to actual images in your directory).