Team:Freiburg/Templates/header

From 2011.igem.org

(Difference between revisions)
Line 45: Line 45:
         if(document.getElementById(submenus[i]) != null){
         if(document.getElementById(submenus[i]) != null){
           document.getElementById(submenus[i]).style.display = "block";
           document.getElementById(submenus[i]).style.display = "block";
-
           array =  document.getElementById(submenus[i]).getElementsByTagName('span');
+
           splitted = submenus[i].split("-");
-
          for (var i = 0; i < array.length; i++){
+
          if(document.getElementById(splitted[1]) != null){
-
            array[i].style.display="inline";
+
            array =  document.getElementById(splitted[1]).getElementsByTagName('span');
 +
            for (var i = 0; i < array.length; i++){
 +
              array[i].style.display="inline";
 +
            }
           }
           }
         }
         }

Revision as of 09:15, 4 July 2011


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