jQuery Hover Problems -
i've got problem jquery. want display div when hover on element , hide when aren't on it.
$(function() { $('#projects').hover(function() { $('#projects .pane').show(200), $('#projects .pane').hide(200); }) });
when hover disappears same time.
thanks :)
your code should this:
$(function() { $('#projects').hover(function() { $('#projects .pane').show(200); }, function(){ $('#projects .pane').hide(200); }); });
the hover
expects 2 function parameters. 1 when mouse on , other 1 when mouse away.
Comments
Post a Comment