Image rollovers are a popular way of making a website appear more dynamic. Image rollovers are often used for highlighting buttons when users hover over them with using their mouse. Of course, there are plenty of other uses for image rollovers too, because the basic principal of image rollovers is that you simply swap one image with another image.
Image Rollover Example
Here's a basic image rollover example.
Explanation of the Code
onmouseover event handler. This event handler calls the
swapImage() function that swaps the images.
Have you met Jack's brothers?
Enjoy this page?
- Link to this page (copy/paste into your own website or blog):
- Link to Quackit using one of these banner ads.
Thanks for supporting Quackit!