An Abbreviated Introduction to JavaScript


Changing the Image

This is a simple illustration of how you use links and onMouseOver to change images. All of the images are taken from the Sherman's Lagoon icon gallery at http://www.slagoon.com/gallery/macicons.html. None of the images are intended to reflect the links.


The image tag:

<img name="icon" src="Images/fish1.gif">

A sample modification:

<a href="http://www.slagoon.com"
     onMouseOver="document.icon.src='Images/sherman1.gif'">Sherman's Lagoon</a>

Source text written by Samuel A. Rebelsky.

This page may be found at http://www.math.grin.edu/~rebelsky/Tutorials/JavaScript/Spring1999/Examples/changeimg.html

Source text last modified Mon Apr 12 12:37:53 1999.

This page generated on Mon Apr 12 12:43:59 1999 by SiteWeaver. Validate this page's HTML.