
Untitled
By: a guest on
Apr 13th, 2012 | syntax:
jQuery | size: 0.32 KB | hits: 25 | expires: Never
jQuery.fn.mudaBackground = function( color, speed, elem ) {
return this.each(function() {
color = (color == undefined) ? 'fff' : color;
speed = (speed == undefined) ? 'slow' : speed;
elem = (elem == undefined) ? this : elem;
$(elem).animate({
backgroundColor: color
},
speed
)
})
};