Click to See Complete Forum and Search --> : Need to swap images.


Kobushinokami
07-12-2003, 08:20 PM
Hi. I want to create a menu for a website. I want to use images that on mouseover, change to another images.

For example:

After loading, image 1 shows in the site. It will be a link,maybe.
On mouse over, image 1 swaps to image 2.


I have seen this done in many sites, so i guess its not too complicated. I think it requires image preload.


Thanks so much in advance.

:D

brendandonhue
07-12-2003, 08:31 PM
Terrible thing to do to dialup users unless the images are very small, but
<img src="img1.gif" onmouseover="this.src='img2.gif'" onmouseout="this.src='img1.gif'">