, , , ,

How to change image on hover

I have a very easy and basic hover effect tips today, which can be very useful.
try the code below replacing image1 ect with your image name. put the code in the body where you want the images to appear.be carefull to keep the ” and ‘ quotes in the same places.

CODE:

<img src=”image1.gif”
onmouseover=”this.src=’image2.gif'”
onmouseout=”this.src=’image1.gif'”> 

Krishna Thapa