Skip to content

Instantly share code, notes, and snippets.

@jwoertink
Created November 22, 2011 22:54
Show Gist options
  • Save jwoertink/1387316 to your computer and use it in GitHub Desktop.
Save jwoertink/1387316 to your computer and use it in GitHub Desktop.
// // dropdown hoover menu
// var timeout = 500;
// var closetimer = 0;
// var ddmenuitem = 0;
//
// function jsddm_open()
// { jsddm_canceltimer();
// jsddm_close();
// ddmenuitem = $(this).find('ul').css('visibility', 'visible');}
//
// function jsddm_close()
// { if(ddmenuitem) ddmenuitem.css('visibility', 'hidden');}
//
// function jsddm_timer()
// { closetimer = window.setTimeout(jsddm_close, timeout);}
//
// function jsddm_canceltimer()
// { if(closetimer)
// { window.clearTimeout(closetimer);
// closetimer = null;}}
//
// $(function() {
// $('#jsddm > li').live('click', jsddm_open);
// });
//
// document.onclick = jsddm_close;
$(function() {
$('#jsddm > li #internal_nav a').click(function() {
$(this).siblings('ul').slideDown('fast');
});
$('#jsddm > li #internal_nav').mouseout(function() {
$(this, 'ul').slideUp('fast');
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment