Team:EPF-Lausanne/Template/SubMenu
From 2012.igem.org
(Difference between revisions)
(3 intermediate revisions not shown) | |||
Line 15: | Line 15: | ||
</script> | </script> | ||
<div class="sub-menu"> | <div class="sub-menu"> | ||
- | < | + | <div class='simple-navi'> |
- | + | <ul> | |
- | + | ||
+ | </ul> | ||
+ | </div> | ||
<div style="clear: both"></div> | <div style="clear: both"></div> | ||
</div> | </div> | ||
Line 23: | Line 25: | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
if(menus[menu]){ | if(menus[menu]){ | ||
- | var sub = $(".sub-menu .simple-navi"); | + | var sub = $(".sub-menu .simple-navi ul"); |
- | sub.append($("<li>").attr("class", "left")); | + | sub.append($("<li>").attr("class", "left").append($("<span>"))); |
- | for(var i = 0; i < menus[menu]; i++){ | + | for(var i = 0; i < menus[menu].length; i++){ |
sub.append($("<li>") | sub.append($("<li>") | ||
.append($("<a>") | .append($("<a>") | ||
Line 34: | Line 36: | ||
} | } | ||
- | sub.append($("<li>").attr("class", " | + | sub.append($("<li>").attr("class", "right").append($("<span>"))); |
} | } | ||
</script> | </script> | ||
</html> | </html> |
Latest revision as of 16:32, 13 September 2012