2 * jQuery UI Effects Highlight 1.8.24
4 * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
5 * Dual licensed under the MIT or GPL Version 2 licenses.
6 * http://jquery.org/license
8 * http://docs.jquery.com/UI/Effects/Highlight
11 * jquery.effects.core.js
13 (function( $, undefined ) {
15 $.effects.highlight = function(o) {
16 return this.queue(function() {
18 props = ['backgroundImage', 'backgroundColor', 'opacity'],
19 mode = $.effects.setMode(elem, o.options.mode || 'show'),
21 backgroundColor: elem.css('backgroundColor')
25 animation.opacity = 0;
28 $.effects.save(elem, props);
32 backgroundImage: 'none',
33 backgroundColor: o.options.color || '#ffff99'
38 easing: o.options.easing,
39 complete: function() {
40 (mode == 'hide' && elem.hide());
41 $.effects.restore(elem, props);
42 (mode == 'show' && !$.support.opacity && this.style.removeAttribute('filter'));
43 (o.callback && o.callback.apply(this, arguments));