Change Image Source using JQuery

Posted by Sachin Gaur on Stack Overflow See other posts from Stack Overflow or by Sachin Gaur
Published on 2009-02-12T07:28:30Z Indexed on 2010/03/13 16:15 UTC
Read the original article Hit count: 292

Filed under:
|

I have few images and their rollover images. I want to show/hide the rollover image when onmousemove/onmouseout event using JQuery. All my images name follow the same pattern, like this:

Original Image: Image.gif
Rollover Image: Imageover.gif

I want to insert and remove the "over" portion of image source in onmouseover and onmouseout event respectively.
How can I do it using JQuery?

© Stack Overflow or respective owner

Related posts about html

Related posts about jQuery