Team:Freiburg/Templates/header

From 2011.igem.org

(Difference between revisions)
Line 20: Line 20:
   alert(id);
   alert(id);
   hideSubmenu(id);
   hideSubmenu(id);
-
//  highlightMenuItem(id);
+
  highlightMenuItem(url);
  //}
  //}
}
}
Line 26: Line 26:
function highlightMenuItem(id){
function highlightMenuItem(id){
   alert('highlight');
   alert('highlight');
-
   array = document.getElementById(id).getElementsByTagName('a');
+
   document.getElementById(id).style.fontWeight='bold';  
-
  for (var i = 0; i < array.length; i++){
+
-
  }
+
}
}
function hideSubmenu( elem ){
function hideSubmenu( elem ){
-
document.getElementById(elem).style.fontWeight='bold';
 
  var submenus= ['sub-team','sub-project', 'sub-home', 'sub-gallery', 'sub-sponsors'];
  var submenus= ['sub-team','sub-project', 'sub-home', 'sub-gallery', 'sub-sponsors'];
  for( var i=0; i<submenus.length; i++){
  for( var i=0; i<submenus.length; i++){

Revision as of 17:59, 3 July 2011


This is the wiki page
of the Freiburger student
team competing for iGEM 2011.
Thank you for your interest!