2 * jQuery UI Effects Highlight 1.9.2
5 * Copyright 2012 jQuery Foundation and other contributors
6 * Released under the MIT license.
7 * http://jquery.org/license
9 * http://api.jqueryui.com/highlight-effect/
14 (function( $, undefined ) {
16 $.effects
.effect
.highlight = function( o
, done
) {
18 props
= [ "backgroundImage", "backgroundColor", "opacity" ],
19 mode
= $.effects
.setMode( elem
, o
.mode
|| "show" ),
21 backgroundColor
: elem
.css( "backgroundColor" )
24 if (mode
=== "hide") {
25 animation
.opacity
= 0;
28 $.effects
.save( elem
, props
);
33 backgroundImage
: "none",
34 backgroundColor
: o
.color
|| "#ffff99"
36 .animate( animation
, {
40 complete: function() {
41 if ( mode
=== "hide" ) {
44 $.effects
.restore( elem
, props
);