Template:Team:HokkaidoU Japan/LargeDropDown/JS

From 2014.igem.org

(Difference between revisions)
Line 21: Line 21:
                     var $number = $child.index($child);
                     var $number = $child.index($child);
-
         $menu.eq($number).hover(function(){
+
         $menu.hover(function(){
-
            $child.find('.ldd_submenu').slideDown(300);
+
            $child.eq($number).find('.ldd_submenu').slideDown(300);
} ,function(){  
} ,function(){  
-
                                           $child.find('.ldd_submenu').stop(true,true).hide();
+
                                           $child.eq($number).find('.ldd_submenu').stop(true,true).hide();
});
});
});
});
</script>
</script>
</html>
</html>

Revision as of 16:10, 5 October 2014