Team:EPF-Lausanne/Template/SubMenu

From 2012.igem.org

(Difference between revisions)
 
(One intermediate revision not shown)
Line 1: Line 1:
<html>
<html>
<script type="text/javascript">
<script type="text/javascript">
-
window.menu = "</html>{{{1}}}<html>";
+
var menu = "</html>{{{1}}}<html>";
var menus = {
var menus = {
Line 15: Line 15:
</script>
</script>
<div class="sub-menu">
<div class="sub-menu">
-
<ul class='simple-navi'>
+
<div class='simple-navi'>
-
+
<ul>
-
</ul>
+
 +
</ul>
 +
</div>
<div style="clear: both"></div>
<div style="clear: both"></div>
</div>
</div>
<script type="text/javascript">
<script type="text/javascript">
-
if(menus[window.menu]){
+
if(menus[menu]){
-
var sub = $(".sub-menu .simple-navi");
+
var sub = $(".sub-menu .simple-navi ul");
sub.append($("<li>").attr("class", "left").append($("<span>")));
sub.append($("<li>").attr("class", "left").append($("<span>")));

Latest revision as of 16:32, 13 September 2012