Team:Freiburg/Templates/header

From 2011.igem.org

(Difference between revisions)
Line 19: Line 19:
   var id = 'sub-'+ url;
   var id = 'sub-'+ url;
   hideSubmenu(id);
   hideSubmenu(id);
-
   highlightMenuItem(url);
+
   highlightMenuItem(document.getElementById(url));
  //}
  //}
}
}
function highlightMenuItem(id){
function highlightMenuItem(id){
-
   alert ('highlight'+id);
+
   alert ('highlight');
-
   document.getElementById(id).style.fontWeight = "bold";
+
   id.style.fontWeight = "bold";
}
}
function hideSubmenu( elem ){
function hideSubmenu( elem ){
 +
highlightMenuItem(elem);
  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:41, 3 July 2011


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