Skip to content

Instantly share code, notes, and snippets.

@susanahernandezd
Created October 24, 2013 10:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save susanahernandezd/7134782 to your computer and use it in GitHub Desktop.
Save susanahernandezd/7134782 to your computer and use it in GitHub Desktop.
Menú desplegable jquery
$("#header #ico-mas").on ('mouseover', function() { //cuando mouseover en el link del menu
var $this = $(this),
get_child = $this.parent().find('.child'),
$the_child = $(get_child);
$the_child.stop(true,true).slideDown('medium').show();
$this.parent().hover(function() {
}, function(){
$the_child.stop(true,true).slideUp('medium'); //busca el "ul.subnav" de dentro del link y lo pliega
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment