Team:Freiburg/test
From 2011.igem.org
(Difference between revisions)
Line 2: | Line 2: | ||
<head> | <head> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
- | function hideFunction(elem) | + | function hideFunction( elem ){ |
+ | var submenus= ['sub-home','sub-team']; | ||
+ | for( var i=0; i<submenus.length; i++){ | ||
+ | if( submenus[i] != elem ) | ||
+ | document.getElementById(submenus[i]).style.display = 'none'; | ||
+ | else | ||
+ | document.getElementById(submenus[i]).style.display = 'block'; | ||
+ | } | ||
+ | } | ||
+ | |||
window.onload = function() { | window.onload = function() { | ||
document.getElementById( "contentSub" ).style.display="none"; | document.getElementById( "contentSub" ).style.display="none"; | ||
Line 217: | Line 226: | ||
<div id=navigation style="width: 150px; float:left"> | <div id=navigation style="width: 150px; float:left"> | ||
<ul> | <ul> | ||
- | <li><a href="https://2011.igem.org/Team:Freiburg/">home</a> | + | <li><a href="https://2011.igem.org/Team:Freiburg/" display="block" onmouseover="hideFunction('sub-home')">home</a> |
- | <ul class="sub-home" | + | <ul class="sub-home" id="sub-home"> |
<li><a href="#">Sub Menu 1</a></li> | <li><a href="#">Sub Menu 1</a></li> | ||
<li><a href="#">Sub Menu 2</a></li> | <li><a href="#">Sub Menu 2</a></li> | ||
Line 225: | Line 234: | ||
</ul> | </ul> | ||
</li> | </li> | ||
- | <li><a href="https://2011.igem.org/Team:Freiburg/Team">team</a> | + | <li><a href="https://2011.igem.org/Team:Freiburg/Team" display="block" onmouseover="hideFunction('sub-team')">team</a> |
- | <ul class="sub-team" | + | <ul class="sub-team" id="sub-team"> |
<li><a href="#">Sub 1</a></li> | <li><a href="#">Sub 1</a></li> | ||
<li><a href="#">Sub 2</a></li> | <li><a href="#">Sub 2</a></li> |
Revision as of 16:35, 29 June 2011