2 * jQuery UI Effects Highlight 1.8.2
4 * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
5 * Dual licensed under the MIT (MIT-LICENSE.txt)
6 * and GPL (GPL-LICENSE.txt) licenses.
8 * http://docs.jquery.com/UI/Effects/Highlight
11 * jquery.effects.core.js
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));