Team:NYMU-Taipei/Navigation
From 2013.igem.org
(Difference between revisions)
Mastershot (Talk | contribs) |
Mastershot (Talk | contribs) |
||
Line 240: | Line 240: | ||
.stop(true) | .stop(true) | ||
.animate({'height':'127px'},200,function(){ | .animate({'height':'127px'},200,function(){ | ||
- | + | var $sub_menu = $elem.find('.sdt_box'); | |
- | + | if($sub_menu.length){ | |
- | + | var left = '127px'; | |
- | + | if($elem.parent().children().length == $elem.index()+1) | |
left = '-127px'; | left = '-127px'; | ||
- | + | $sub_menu.show().animate({'left':left},100,function(){ | |
- | + | $sub_menu.bind('mouseenter',function(){ | |
- | + | $secsub_menu = $element.find('.sdt_secsub'); | |
- | + | if($secsub_menu.length){ | |
- | + | var left = '254px' | |
- | + | if($elem.parent().children().length == $elem.index()+1) | |
- | + | var left = '-254px' | |
- | + | $secsub_menu.show().animate({'left':left},100); | |
- | + | } | |
- | } | + | |
+ | }); | ||
+ | }; | ||
+ | }); | ||
+ | |||
}); | }); | ||
}).bind('mouseleave',function(){ | }).bind('mouseleave',function(){ |
Revision as of 14:03, 19 September 2013