Basic Image Rollover
You know those images, that when you roll over them, change? Learn how to create an image rollover now! You will need your image, and the image you want it to rollover into.
So, get your main image (the one that will load onto the page) and set up the code as normal, but MAKE SURE you have a name (that's the "name" section).
Now you'll need your second image, and since you want it to be able to come up instantly, we'll use a pre-loading script, like this:
This will tell the visitor's computer to make room for your second image while it loads the page, so it'll work faster.
Now we need the actual code to make the changing occur. This works like a normal link code, but since we're not going anywhere we'll leave the destination as "#".
Here comes the rollover part. You have to add some more to the link tag in order for it to actually change, so change what was in the last snippet of code to this:
And have that instead of the original link. REMEMBER: never give two things the same name, or else this code won't work. So here's what it should look like when you put it all together:
And the finished image will look like this:
Hope this tutorial has helped you. If it has, let me know! I love to know that my tutorials are helping people.






