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);
+
  highlightMenuItem(id);
  //}
  //}
}
}
function highlightMenuItem(id){
function highlightMenuItem(id){
-
  alert('highlight');
 
   array = document.getElementById(id).getElementsByTagName('a');
   array = document.getElementById(id).getElementsByTagName('a');
   for (var i = 0; i < array.length; i++){
   for (var i = 0; i < array.length; i++){
Line 52: Line 50:
window.onload = function() {  
window.onload = function() {  
-
alert('in windoeonload');
 
  windowLoadMenu();
  windowLoadMenu();
  document.getElementById( "contentSub" ).style.display="none";
  document.getElementById( "contentSub" ).style.display="none";

Revision as of 17:31, 3 July 2011


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