This event occurs when the cursor is brought over the specified object, the coordinates of the object are noted and if the position of cursor falls inside those coordinates this event gets fired, to which we can program accordingly. |
Example: |
<html>
<head> <title>events </title> </head> <body bgcolor=green text=”white”> <h4 align =center> Please bring your mouse over the image</h4> <img id=”img1″ src=”water.jpg” height=200 width=200 onmouseover=”ff()”> <script> function ff() { document.all.img1.width=”180″ document.all.img1.height=”180″ } </script> </body> </html> |