Template:Team:Amsterdam/ernst/scripts
From 2012.igem.org
(Difference between revisions)
Line 51: | Line 51: | ||
function submenu2(){ | function submenu2(){ | ||
- | $(" #submenu ul li").ready(function(){ | + | $(" #submenu ul li ul").ready(function(){ |
- | + | $(this).data('originalheight', $(this).height()); | |
}); | }); | ||
Line 58: | Line 58: | ||
$(" #submenu ul li").hover(function(){ | $(" #submenu ul li").hover(function(){ | ||
- | + | alert($(this).find('ul:first').data('originalheight')); | |
$(this).find('ul:first').stop().animate({display:'block', height:'show'},{queue:true, duration:400}); | $(this).find('ul:first').stop().animate({display:'block', height:'show'},{queue:true, duration:400}); | ||
},function(){ | },function(){ |
Revision as of 14:52, 10 September 2012