Template:Team:HokkaidoU Japan/LargeDropDown/JS

From 2014.igem.org

(Difference between revisions)
Line 54: Line 54:
* expand the span element (title) to 510px
* expand the span element (title) to 510px
*/
*/
-
$menu.children('li').slice(1,3).each(function(){
+
$menu.slice(1,3).hover(function(){
-
var $this = $(this);
+
-
$this.hover(function(){
+
$this.find('.ldd_submenu').slideDown(300);
$this.find('.ldd_submenu').slideDown(300);
} ,function(){
} ,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:22, 5 October 2014