Rollover Images: The Tag
Now we add the code which puts the image on the page. The rollover is created with an<A ...><IMG ...>
Most of the code for these two tags is like normal links and images, but each of the tags have some extra information. <IMG SRC="...">
The <A ...>onMouseOveronMouseOutonMouseOverrollover() function, which sets the image for when the mouse is over. onMouseOutrollout(), which sets the image for when the mouse is not over.
rollover() and rollout() each take one parameter: the name of the image. Note that the name of the image should be in single quotes.
The <IMG ...>NAME="home". Each rollover on the page should have a unique name. The scripts use this unique name to refer to the image and change its properties as the mouse moves over and out.
Finally, we follow the <IMG ...>setrollover("../graphics/home_over.gif");<IMG ...>

