reactivating or binding a hover function in jquery??

Posted by mathiregister on Stack Overflow See other posts from Stack Overflow or by mathiregister
Published on 2010-06-05T08:04:12Z Indexed on 2010/06/05 8:12 UTC
Read the original article Hit count: 286

Filed under:
|
|

hi guys, with the following three lines:

$( ".thumb" ).bind( "mousedown", function() {
        $('.thumb').not(this).unbind('mouseenter mouseleave');
    });  

i'm unbinding this hover-function:

$(".thumb").hover(
      function () {
        $(this).not('.text, .file, .video, .audio').stop().animate({"height": full}, "fast");
        $(this).css('z-index', z);
        z++;        
      },
      function () {
        $(this).stop().animate({"height": small}, "fast");
      }
    );  

i wonder how i can re-bind the exact same hover function again on mouseup? the follwoing three lines arent't working!

$( ".thumb" ).bind( "mouseup", function() {
$('.thumb').bind('mouseenter mouseleave');
});

to get what i wanna do here's a small explanation. I want to kind of deactivate the hover function for ALL .thumbs-elements when i click on one. So all (but not this) should not have the hover function assigned while i'm clicking on an object. If i release the mouse again, the hover function should work again like before.

Is that even possible to do? thank you for your help!

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about binding