51
rated 0 times
[
58]
[
7]
/ answers: 1 / hits: 152219
/ 12 Years ago, tue, may 22, 2012, 12:00:00
What's the correct way to change an image on mouseover and back on mouseout (with/without jQuery)?
<a href=# id=name>
<img title=Hello src=/ico/view.png onmouseover=$(this).attr('src','/ico/view.hover.png') />
</a>
Ok, this is working, but how to change back to the original image after mouseout
?
If it is possible, I want to do this thing inline, without document.ready function.
More From » jquery