Team:Alberta/LeftBar

From 2009.igem.org

(Difference between revisions)
Line 157: Line 157:
     window.name = lastClicked;
     window.name = lastClicked;
   }
   }
-
   alert(lastClicked);
+
    
   alert(window.name);
   alert(window.name);
//for(att in this){
//for(att in this){
Line 183: Line 183:
     a.onclick = showMenu;
     a.onclick = showMenu;
     a.onfocus = function(){this.blur()};
     a.onfocus = function(){this.blur()};
-
    alert(window.name)
 
     if (a.textContent == window.name)
     if (a.textContent == window.name)
     {
     {
 +
      a.className = "active";
 +
      getNextSiblingByElement(a).style.display = "block";
       activeMenu = a;
       activeMenu = a;
     }
     }

Revision as of 23:08, 10 October 2009