Created
November 22, 2011 22:54
-
-
Save jwoertink/1387316 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// // 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