Change Image on Mouseover

Megalith

24-bit/48kHz
Staff member
Joined
Aug 20, 2006
Messages
13,000
I figure there's a number of ways to do this, but I'm interested in the most practical one.

What I want to do is set up a menu that will show a different photo in another div depending on which link (or image, since I want to use Helvetica but Google Fonts doesn't support it) is hovered over.
 
Sounds like something pretty easily done with jquery. There's quite a few examples of changing images by hovering, clicking, or what have you.
 
Code:
This:
document.getElementById("image").src="/new_image.jpg";

with event handlers like:
onmouseout
onmouseover
onmousedown
 
Back
Top