Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 13th, 2012  |  syntax: jQuery  |  size: 0.32 KB  |  hits: 25  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. jQuery.fn.mudaBackground = function( color, speed, elem ) {
  2.                 return this.each(function() {
  3.                         color = (color == undefined) ? 'fff' : color;
  4.                         speed = (speed == undefined) ? 'slow' : speed;
  5.                         elem = (elem == undefined) ? this : elem;
  6.                         $(elem).animate({
  7.                                 backgroundColor: color
  8.                                 },
  9.                                 speed
  10.                         )
  11.                 })
  12.         };