2 * Interface Elements for jQuery
\r
5 * http://interface.eyecon.ro
\r
7 * Copyright (c) 2006 Stefan Petre
\r
8 * Dual licensed under the MIT (MIT-LICENSE.txt)
\r
9 * and GPL (GPL-LICENSE.txt) licenses.
\r
16 * @description makes the element to pulsate
\r
17 * @param Mixed speed animation speed, integer for miliseconds, string ['slow' | 'normal' | 'fast']
\r
18 * @param Integer times how many times to pulsate
\r
19 * @param Function callback (optional) A function to be executed whenever the animation completes.
\r
21 * @cat Plugins/Interface
\r
22 * @author Stefan Petre
\r
24 jQuery.fn.Pulsate = function(speed, times, callback) {
\r
25 return this.queue('interfaceFX',function(){
\r
26 if (!jQuery.fxCheckTag(this)) {
\r
27 jQuery.dequeue(this, 'interfaceFX');
\r
30 var fx = new jQuery.fx.Pulsate(this, speed, times, callback);
\r
35 jQuery.fx.Pulsate = function (el, speed, times, callback)
\r
42 z.callback = callback;
\r
43 jQuery(z.el).show();
\r
44 z.pulse = function()
\r
47 z.e = new jQuery.fx(
\r
52 z.ef = new jQuery.fx(
\r
58 if (z.cnt <= z.times)
\r
61 jQuery.dequeue(z.el, 'interfaceFX');
\r
62 if (z.callback && z.callback.constructor == Function) {
\r
63 z.callback.apply(z.el);
\r