Team:Alberta/LeftBar
From 2009.igem.org
(Difference between revisions)
Line 139: | Line 139: | ||
var activeMenu; | var activeMenu; | ||
- | + | var lastClicked; | |
function showMenu() { | function showMenu() { | ||
Line 149: | Line 149: | ||
{ | { | ||
activeMenu = null; | activeMenu = null; | ||
+ | lastClicked = null; | ||
} else { | } else { | ||
this.className = "active"; | this.className = "active"; | ||
Line 162: | Line 163: | ||
var menus, menu, text, a, i; | var menus, menu, text, a, i; | ||
menus = getChildrenByElement(document.getElementById("menu")); | menus = getChildrenByElement(document.getElementById("menu")); | ||
+ | var lastClicked = window.name; | ||
for(i = 0; i < menus.length; i++){ | for(i = 0; i < menus.length; i++){ | ||
menu = menus[i]; | menu = menus[i]; |
Revision as of 22:32, 10 October 2009
|