Thursday, March 26, 2009

Coding for changing Image display while Hover using Jquery

$(function() {
$('#div_menu a').animate({"opacity": .7 });
$('#div_menu a').hover(function() {
$(this).stop().animate({ "opacity": 3 });
},
function() {
$(this).stop().animate({ "opacity": .5 });
});
});
$(function() {
$('#div_tools img').animate({"opacity": .5 });
$('#div_tools img').hover(function() {
$(this).stop().animate({ "opacity": 1 });
},
function() {
$(this).stop().animate({ "opacity": .5 });
});
});

No comments: