Team:NYMU-Taipei/Navigation

From 2013.igem.org

(Difference between revisions)
Line 231: Line 231:
if($elem.parent().children().length == $elem.index()+1)
if($elem.parent().children().length == $elem.index()+1)
left = '-127px';
left = '-127px';
-
$sub_menu.show().animate({'left':left},100);
+
$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:17, 19 September 2013