Change Image on Mouseover

Megalith

24-bit/48kHz
Staff member
Joined
Aug 20, 2006
Messages
13,004
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.
 

Nightrainsrt4

Limp Gawd
Joined
Dec 15, 2008
Messages
435
Sounds like something pretty easily done with jquery. There's quite a few examples of changing images by hovering, clicking, or what have you.
 
Joined
Mar 9, 2004
Messages
3,318
Code:
This:
document.getElementById("image").src="/new_image.jpg";

with event handlers like:
onmouseout
onmouseover
onmousedown
 
Top