Team:Freiburg/Templates/header
From 2011.igem.org
(Difference between revisions)
Line 18: | Line 18: | ||
//else { // we are on a main menu item | //else { // we are on a main menu item | ||
var id = 'sub-'+ url; | var id = 'sub-'+ url; | ||
+ | alert(id); | ||
hideSubmenu(id); | hideSubmenu(id); | ||
- | // | + | // highlightMenuItem(id); |
- | + | ||
//} | //} | ||
} | } | ||
function highlightMenuItem(id){ | function highlightMenuItem(id){ | ||
- | alert ('highlight'); | + | alert('highlight'); |
- | id. | + | array = document.getElementById(id).getElementsByTagName('a'); |
+ | for (var i = 0; i < array.length; i++){ | ||
+ | } | ||
} | } | ||
Line 49: | Line 51: | ||
window.onload = function() { | window.onload = function() { | ||
- | alert(' | + | alert('in windoeonload'); |
windowLoadMenu(); | windowLoadMenu(); | ||
document.getElementById( "contentSub" ).style.display="none"; | document.getElementById( "contentSub" ).style.display="none"; | ||
Line 74: | Line 76: | ||
padding:0px; | padding:0px; | ||
border: none; | border: none; | ||
- | |||
} | } | ||
#content { | #content { | ||
Line 315: | Line 316: | ||
<div id=navigation style="width: 150px; float:left"> | <div id=navigation style="width: 150px; float:left"> | ||
<ul> | <ul> | ||
- | <li><a | + | <li><a href="https://2011.igem.org/Team:Freiburg/test" display="block" onclick="hideSubmenu('none')"><span class="blue" display="none"> < </span>home<span class="blue" display="none"> > </span></a> |
</li> | </li> | ||
- | <li><a | + | <li><a href="#" display="block" onclick="hideSubmenu('sub-team')"><span class="blue" display="none"> < </span>team<span class="blue" display="none"> > </span></a> |
<ul class="sub2" id="sub-team" display="none"> | <ul class="sub2" id="sub-team" display="none"> | ||
- | <li class="sub2"><a | + | <li class="sub2"><a href="#"> <span class="blue"> → </span>members</a></li> |
<li class="sub2"><a href="#"> <span class="blue"> → </span>attributions</a></li> | <li class="sub2"><a href="#"> <span class="blue"> → </span>attributions</a></li> | ||
<li class="sub2"><a href="#"> <span class="blue"> → </span>freiburg</a></li> | <li class="sub2"><a href="#"> <span class="blue"> → </span>freiburg</a></li> | ||
</ul> | </ul> | ||
</li> | </li> | ||
- | <li><a | + | <li><a href="https://2011.igem.org/Team:Freiburg/Project" display="block" onclick="hideSubmenu('sub-project')"><span class="blue" display="none"> < </span>project<span class="blue" display="none"> > </span></a> |
<ul class="sub2" id="sub-project" display="none"> | <ul class="sub2" id="sub-project" display="none"> | ||
<li class="sub2"><a href="#"><span class="blue"> → </span>overview</a></li> | <li class="sub2"><a href="#"><span class="blue"> → </span>overview</a></li> |
Revision as of 17:46, 3 July 2011