Can you help me stop this?
Hello,
I want the hover effect to stop once I stop hovering over and out of it. Right now if you hover over it a bunch of times real fast it just keeps going.
Is there a way to have it not do that?
Here is my work in progress:
TEST PAGE
and here is the jQuery:
- $(function(){
$('#last-img').ready(function() {
var hide = false;
$('#show-hide').hide();
$('#header-container').hover(function() {
$('#show-hide').slideToggle(400);
$('#open-close-footer img').attr('src', 'images/close.png');
return false;
}, function(){
$('#show-hide').slideToggle(400);
$('#open-close-footer img').attr('src', 'images/open.png');
});
});
});
Thanks for your time,
Tim