run callback function

$.callFunc = function(_el, _callback, _param, _delay) { var _timerCallback = null; _callback = (typeof _callback == 'string') ? window[_callback] : _callback; if ($.isFunction(_callback)) { _param = (_param === null) ? '' : _param; _delay = _delay || 50; _timerCallback = setTimeout(function() { clearTimeout(_timerCallback); _callback.call(null, _param); }, 50); } else { return false; } };

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.