Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;(function($) {
- $.fn.fadeOutSoon = function(when, length) {
- if (typeof when == "undefined") when = 5000;
- if (typeof length == "undefined") length = 1000;
- var $this = $(this);
- setTimeout(function() {
- $this.fadeOut(length)
- }, when);
- return $this;
- };
- })(jQuery);
Add Comment
Please, Sign In to add comment