Team:NYMU-Taipei/Templates/Header/menubar
From 2011.igem.org
(Difference between revisions)
Line 173: | Line 173: | ||
.find('.sdt_active') | .find('.sdt_active') | ||
.stop(true) | .stop(true) | ||
- | .animate({'height':' | + | .animate({'height':'150px'},300,function(){ |
var $sub_menu = $elem.find('.sdt_box'); | var $sub_menu = $elem.find('.sdt_box'); | ||
if($sub_menu.length){ | if($sub_menu.length){ | ||
- | var left = ' | + | var left = '150px'; |
if($elem.parent().children().length == $elem.index()+1) | if($elem.parent().children().length == $elem.index()+1) | ||
- | left = '- | + | left = '-150px'; |
$sub_menu.show().animate({'left':left},200); | $sub_menu.show().animate({'left':left},200); | ||
} | } |
Revision as of 17:10, 5 October 2011