Template:USTC-Software/header/js2
From 2013.igem.org
<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.mainlevel",200);
}); </script>