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

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -