I am trying to fade-in a background image on a button on mouseover
(and fade it out on mouseout
), without the actual button text fading.
$('btn').hover(function () {
$('btn', this).stop().animate({
"opacity": 1
});
}, function () {
$('btn', this).stop().animate({
"opacity": 0
});
});
Example: http://jsfiddle.net/craigzilla/fFq2A