Change .mouseover
to .mouseenter
, and change .mouseout
to .mouseleave
.
check out fiddle
$(".menu")
.mouseenter(function() {
$(".logo img").attr("src", "http://www.makingdifferent.com/wp-content/uploads/2013/03/123.gif");
});
$(".menu").mouseleave(function() {
$(".logo img").attr("src", "http://www.thisiscolossal.com/wp-content/uploads/2012/07/rrrrroll01.gif");
});