Team:NYMU-Taipei/Navigation
From 2013.igem.org
(Difference between revisions)
Mastershot (Talk | contribs) |
Mastershot (Talk | contribs) |
||
Line 260: | Line 260: | ||
left = '-127px'; | left = '-127px'; | ||
$sub_menu.show().animate({'left':left},100,function(){ | $sub_menu.show().animate({'left':left},100,function(){ | ||
- | $sub_menu. | + | var $sub_link = $sub_menu.find('a'); |
- | $secsub_menu = $ | + | $sub_link.hover(function(){ |
+ | $secsub_menu = $sub_link.next().find('.sdt_secsub'); | ||
if($secsub_menu.length){ | if($secsub_menu.length){ | ||
- | var | + | var left_s = '254px' |
if($elem.parent().children().length == $elem.index()+1) | if($elem.parent().children().length == $elem.index()+1) | ||
- | var | + | var left_s = '-254px' |
- | $secsub_menu.show().animate({'left': | + | $secsub_menu.show().animate({'left':left_s},100); |
+ | } | ||
+ | } | ||
} | } | ||
}); | }); |
Revision as of 15:35, 19 September 2013