Team:Freiburg/test
From 2011.igem.org
(Difference between revisions)
Line 3: | Line 3: | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
function hideSubmenu( elem ){ | function hideSubmenu( elem ){ | ||
- | var submenus= ['sub-home','sub-team']; | + | var submenus= ['sub-home','sub-team', 'sub-project','sub-gallery','sub-sponsors']; |
for( var i=0; i<submenus.length; i++){ | for( var i=0; i<submenus.length; i++){ | ||
if( submenus[i] != elem ) | if( submenus[i] != elem ) | ||
document.getElementById(submenus[i]).style.display = 'none'; | document.getElementById(submenus[i]).style.display = 'none'; | ||
else | else | ||
- | document.getElementById(submenus[i]).style.display = 'block'; | + | if (elem == 'none') |
+ | document.getElementById(submenus[i]).style.display = 'none'; | ||
+ | else | ||
+ | document.getElementById(submenus[i]).style.display = 'block'; | ||
} | } | ||
} | } | ||
Line 227: | Line 230: | ||
<div id=navigation style="width: 150px; float:left"> | <div id=navigation style="width: 150px; float:left"> | ||
<ul> | <ul> | ||
- | <li><a href="#" display="block" onclick="hideSubmenu(' | + | <li><a href="#" display="block" onclick="hideSubmenu('none')">home</a> |
</li> | </li> | ||
<li><a href="#" display="block" onclick="hideSubmenu('sub-team')">team</a> | <li><a href="#" display="block" onclick="hideSubmenu('sub-team')">team</a> | ||
Line 237: | Line 240: | ||
<li><a href="https://2011.igem.org/Team:Freiburg/Project" display="block" onclick="hideSubmenu('sub-project')">project</a> | <li><a href="https://2011.igem.org/Team:Freiburg/Project" display="block" onclick="hideSubmenu('sub-project')">project</a> | ||
<ul class="sub2" id="sub-project" display="none"> | <ul class="sub2" id="sub-project" display="none"> | ||
- | <li class="sub2"><a href="#"> | + | <li class="sub2"><a href="#">overview</a></li> |
- | <li class="sub2"><a href="#"> | + | <li class="sub2"><a href="#">motivation</a></li> |
+ | <li class="sub2"><a href="#">description</a></li> | ||
<li class="sub2"><a href="#">results</a></li> | <li class="sub2"><a href="#">results</a></li> | ||
<li class="sub2"><a href="#">modelling</a></li> | <li class="sub2"><a href="#">modelling</a></li> | ||
Line 244: | Line 248: | ||
<li class="sub2"><a href="#">safety</a></li> | <li class="sub2"><a href="#">safety</a></li> | ||
</ul> </li> | </ul> </li> | ||
- | <li><a href="#" display="block" onclick="hideSubmenu(' | + | <li><a href="#" display="block" onclick="hideSubmenu('none')">gallery</a> |
- | <li><a href="https://2011.igem.org/Team:Freiburg/Sponsors" display="block" onclick="hideSubmenu(' | + | <li><a href="https://2011.igem.org/Team:Freiburg/Sponsors" display="block" onclick="hideSubmenu('none')">sponsors</a> |
</ul> | </ul> | ||
</div> | </div> |
Revision as of 15:36, 2 July 2011