Team:Brown-Stanford/Templates/Main
From 2011.igem.org
(Difference between revisions)
Line 438: | Line 438: | ||
if($sub_menu.length){ | if($sub_menu.length){ | ||
var a = $sub_menu[0].getElementsByTagName('a').length; | var a = $sub_menu[0].getElementsByTagName('a').length; | ||
- | var px = a* | + | var px = a*25+20; |
var height = px+'px'; | var height = px+'px'; | ||
$sub_menu.show().animate({'top':'150px','height':height},400); | $sub_menu.show().animate({'top':'150px','height':height},400); |
Revision as of 19:24, 24 September 2011