Template:USTC-Software/header/js2
From 2013.igem.org
(Difference between revisions)
(Replaced content with " <script> $(document).ready(function(){ jQuery.navlevel2 = function(level1,dytime) { $(level1).mouseenter(function(){ varthis = $(this); delytime=setTimeout(...") |
|||
Line 16: | Line 16: | ||
}; | }; | ||
- | $.navlevel2("li. | + | $.navlevel2("li.nav-item",200); |
}); | }); | ||
</script> | </script> |
Revision as of 18:48, 26 October 2013
<script>
$(document).ready(function(){ jQuery.navlevel2 = function(level1,dytime) {
$(level1).mouseenter(function(){ varthis = $(this); delytime=setTimeout(function(){ varthis.find('ul').slideDown(); },dytime);
}); $(level1).mouseleave(function(){ clearTimeout(delytime); $(this).find('ul').slideUp(); });
};
$.navlevel2("li.nav-item",200);
}); </script>