Template:Team:HokkaidoU Japan/LargeDropDown/JS

From 2014.igem.org

(Difference between revisions)
Line 56: Line 56:
$menu.children('li').slice(1,3).each(function(){
$menu.children('li').slice(1,3).each(function(){
var $this = $(this);
var $this = $(this);
-
var $span = $this.children('span');
+
$this.hover(function(){
-
$span.data('width',$span.width());
+
-
+
-
$this.bind('mouseenter',function(){
+
$this.find('.ldd_submenu').slideDown(300);
$this.find('.ldd_submenu').slideDown(300);
-
});
+
} ,function(){
-
}).bind('mouseleave',function(){
+
$this.find('.ldd_submenu').stop(true,true).hide();
$this.find('.ldd_submenu').stop(true,true).hide();
});
});
});
});
-
            });
 
-
 
</script>
</script>
</html>
</html>

Revision as of 09:21, 5 October 2014