In the following example we will add an image that should act as a link button on a web page. We
functions that will change between the images.
The HTML code looks like this:
The onMouseOver event tells the browser that once a mouse is rolled over the image, the browser
should execute a function that will replace the image with another image.
The onMouseOut event tells the browser that once a mouse is rolled away from the image, another
The function mouseOver() causes the image to shift to "colorb.png".
The function mouseOut() causes the image to shift to "colorg.png".
Your Query was successfully sent!