javascript tutorialsImage Mouseover Everyone's favorite JavaScript trick is to swap images. Images can be changed by the actions of the web user, usually by moving the mouse over the image or by clicking something. The creates the illusion of movement or animation.
← Like this image How is this done? This tutorial shows you how to create a rollover image with JavaScript. Simple Rollover Image -
<script type="text/javascript">
if (document.images) { img1 = new Image(); img2 = new Image(); img1.src = "eye-open.gif"; } else And there you have it! You have an easy rollover image script that is easy to understand. |
|
Custom Search
Some developers offer ready made scripts that can be modified to work in your website. Some of these scripts are free and some require a small fee, but they are well worth it:
|