Team:Freiburg/Templates/header

From 2011.igem.org

(Difference between revisions)
Line 8: Line 8:
  url = splitted[1].toLowerCase();
  url = splitted[1].toLowerCase();
   var id = 'sub-'+ url;
   var id = 'sub-'+ url;
 +
  hideSubmenu(id);
   alert(id);
   alert(id);
   highlightMenuItem(url);
   highlightMenuItem(url);
-
  hideSubmenu(id);
 
  //}
  //}
}
}
Line 20: Line 20:
function hideSubmenu( elem ){
function hideSubmenu( elem ){
 +
alert('elem: '+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++){
   if (elem == 'none'){
   if (elem == 'none'){
-
       document.getElementById(submenus[i]).style.display = 'none';
+
       document.getElementById(submenus[i]).style.display = "none";
   }
   }
   else{
   else{
     if( submenus[i] != elem ){
     if( submenus[i] != elem ){
-
         document.getElementById(submenus[i]).style.display = 'none';
+
         document.getElementById(submenus[i]).style.display = "none";
  //      document.getElementById(id).getElementsByTagName('span').style.display='none';
  //      document.getElementById(id).getElementsByTagName('span').style.display='none';
     }
     }
     else{
     else{
-
         document.getElementById(submenus[i]).style.display = 'block';
+
         document.getElementById(submenus[i]).style.display = "block";
  //      document.getElementById(id).getElementsByTagName('span').style.display='block';
  //      document.getElementById(id).getElementsByTagName('span').style.display='block';
     }
     }

Revision as of 18:09, 3 July 2011


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