1
2
3
4
5
6
7
$('img#nav1').hover(function() {
	$(this).attr("src","/images/headerNav/1-over.gif");
		}, function() {
	$(this).attr("src","/images/headerNav/1.gif");
});
 
<img src="1.gif" id="nav1" />

Gefunden bei: jQuery Image Swap | For Your Lungs Only.

 

Selektieren eines Elements via Title-Tag:

1
jQuery(".socialmedialink a[title=Twitter] img")

Kommentieren?