.hover() - keep the new div showing if mouse is over it

.hover() - keep the new div showing if mouse is over it

 The state my code is in, i can only set a timeout for the div to dissapear, but i want it to stick till it loses focus.

  1. $(document).ready(function(){
    var img = $("#myPic");
    var pos = img.position();

    img.hover(function(){$("#floatdiv").show(1000);
    $('#floatdiv').css({'top' : pos.top + 25 + 'px', 'left' : pos.left + 25 + 'px'});
    },function(){
    setTimeout(function() {
        $('#floatdiv').hide('fast');
    }, 3000);
    });
       });