Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(function() {
- $('ul.sub-menu').hide();
- $('.sub-menu ul').hide();
- var second_lvl_timer;
- $('#menu-navigation li').hover(function(){
- second_lvl_timer = setTimeout(function () {
- $(this).children('ul').slideDown("fast");
- }, 500);
- },
- function(){
- clearTimeout(second_lvl_timer);
- $(this).children('ul').hide();
- });
- var third_lvl_timer;
- $('#menu-navigation ul li').hover(function(){
- clearTimeout(third_level_timer);
- $(this).children('ul').slideDown("fast");
- },
- function(){
- third_lvl_timer = setTimeout(function () {
- $(this).children('ul').hide();
- }, 500);
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement