Change The Image When Move Mouse Using Onmousemove Event In JavaScript

  1. <html>  
  2.   
  3. <body> <img src="Water lilies.jpg" name="mousetest" width="234" height="91">  
  4.     <p onmousemove="document.images['mousetest'].src='Sunset.jpg'"> When you move the mouse pointer over this paragraph, the image changes.</p>  
  5. </body>  
  6.   
  7. </html>