Here is the simplest, shortest, fastest loading, GIF Image "RollOver" code available on the internet today!
GIF Image Rollover Code Tutorial
COPY IT
Here is a working RollOver (MouseOver) code snip you can copy and paste into your page. Change test.htm to the page you link to; and edit the GIF names, pic1.gif and pic2.gif, to your choice.
LEARN IT
This is really easy to learn using simple commands, onMouseover and onMouseout
Start with the Image
you want to use as a link : <img src="pic1.gif" width="100" height="30" >
Add an identifier id="MyLink1" <img id="MyLink1" src="pic1.gif" width="100" height="30" > You need this in case you have more than one link. (You would identify the second Rollover image as id=MyLink2, etc.)
Wrap some Link code around your gif
<a href="test.htm"> </a> like this: <a href="page1.htm > <img id="MyLink1" src="pic1.gif" width="100" height="30" > </a>
Now insert the tiny magic code that does the changeover: onMouseover="MyLink1.src='pic2.gif';" - add it in like this:
You can add other commands into the link code, E.G. you can have differents pics show in a box whenever links are rolled over, like this: Roll Here |
And Here