views:

167

answers:

0

I'm trying to add functionality to the jQuery.notice.js plugin written by Tim Benniks. (http://code.google.com/p/jquery-notice/)

I want to pause the noticeRemove() function if you're hovering over the .notice-item . Here's the function:

noticeRemove: function(obj){
    obj.animate({opacity: '0'}, 600, function(){
        obj.parent().animate({height: '0px'}, 300, function(){
            obj.parent().remove();
        });
    });
}