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 | + | function hideSubmenu( elem ){ |
var submenus= ['sub-home','sub-team']; | var submenus= ['sub-home','sub-team']; | ||
for( var i=0; i<submenus.length; i++){ | for( var i=0; i<submenus.length; i++){ | ||
Line 13: | Line 13: | ||
window.onload = function() { | window.onload = function() { | ||
+ | hideSubmenu('sub-home'); | ||
document.getElementById( "contentSub" ).style.display="none"; | document.getElementById( "contentSub" ).style.display="none"; | ||
document.getElementsByTagName( "p" )[0].style.display="none"; | document.getElementsByTagName( "p" )[0].style.display="none"; | ||
Line 226: | Line 227: | ||
<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/" display="block" onmouseover=" | + | <li><a href="https://2011.igem.org/Team:Freiburg/" display="block" onmouseover="hideSubmenu('sub-home')">home</a> |
<ul class="sub-home" id="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> | ||
Line 234: | Line 235: | ||
</ul> | </ul> | ||
</li> | </li> | ||
- | <li><a href="https://2011.igem.org/Team:Freiburg/Team" display="block" onmouseover=" | + | <li><a href="https://2011.igem.org/Team:Freiburg/Team" display="block" onmouseover="hideSubmenu('sub-team')">team</a> |
<ul class="sub-team" id="sub-team"> | <ul class="sub-team" id="sub-team"> | ||
<li><a href="#">Sub 1</a></li> | <li><a href="#">Sub 1</a></li> |
Revision as of 16:37, 29 June 2011