Team:Freiburg/test
From 2011.igem.org
(Difference between revisions)
(Undo revision 22899 by Ilinca.tudose (talk)) |
|||
Line 2: | Line 2: | ||
<head> | <head> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
- | + | function hideSubmenu( 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() { | ||
Line 9: | Line 17: | ||
document.getElementsByTagName( "p" )[0].style.display="none"; | document.getElementsByTagName( "p" )[0].style.display="none"; | ||
} | } | ||
- | |||
//<![CDATA[ | //<![CDATA[ | ||
</script> | </script> | ||
Line 186: | Line 193: | ||
#navigation ul {margin:0; padding:10px;} | #navigation ul {margin:0; padding:10px;} | ||
#navigation li {list-style: none; border-bottom:dashed; border-bottom-width:1px; border-color:#A5B3AA;} | #navigation li {list-style: none; border-bottom:dashed; border-bottom-width:1px; border-color:#A5B3AA;} | ||
- | + | #navigation li.sub2 {border-top:dashed; border-top-width:1px; border-color:#A5B3AA; border-bottom:none;} | |
#navigation a { | #navigation a { | ||
color: #4E3F30; | color: #4E3F30; | ||
Line 206: | Line 213: | ||
width:570px; | width:570px; | ||
} | } | ||
- | |||
- | |||
- | |||
- | |||
</style> | </style> | ||
</head> | </head> | ||
Line 222: | Line 225: | ||
<div id=my_content> | <div id=my_content> | ||
- | + | <div id=navigation style="width: 150px; float:left"> | |
- | + | <ul> | |
- | + | <li><a href="#" display="block" onclick="hideSubmenu('sub-home')">home</a> | |
+ | <ul id="sub-home"> | ||
+ | <li class="sub2"><a href="#">Sub Menu 1</a></li> | ||
+ | <li class="sub2"><a href="#">Sub Menu 2</a></li> | ||
+ | <li class="sub2"><a href="#">Sub Menu 3</a></li> | ||
+ | <li class="sub2"><a href="#">Sub Menu 4</a></li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | <li><a href="#" display="block" onclick="hideSubmenu('sub-team')">team</a> | ||
+ | <ul class="sub2" id="sub-team"> | ||
+ | <li class="sub2"><a href="#">Sub 1</a></li> | ||
+ | <li class="sub2"><a href="#">Sub 2</a></li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | <li><a href="https://2011.igem.org/Team:Freiburg/Project">project</a></li> | ||
+ | <li><a href="https://2011.igem.org/Team:Freiburg/Safety">safety</a></li> | ||
+ | <li><a href="https://2011.igem.org/Team:Freiburg/Sponsors">sponsors</a></li> | ||
+ | </ul> | ||
+ | </div> | ||
<div id=noNavigationContent> | <div id=noNavigationContent> |
Revision as of 09:14, 2 July 2011