Team:HIT-Harbin/js/main.js
From 2014.igem.org
(Difference between revisions)
(Created page with "function displaySubMenu(div) { var subMenu = div.getElementsByTagName("a")[0]; subMenu.style.display = "block"; } function hideSubMenu(x) { var subMenu = div.getElementsByTa...") |
|||
Line 1: | Line 1: | ||
function displaySubMenu(div) { | function displaySubMenu(div) { | ||
- | var subMenu = div.getElementsByTagName(" | + | var subMenu = div.getElementsByTagName("ul")[0]; |
subMenu.style.display = "block"; | subMenu.style.display = "block"; | ||
} | } | ||
- | function hideSubMenu( | + | function hideSubMenu(div) { |
- | var subMenu = div.getElementsByTagName(" | + | var subMenu = div.getElementsByTagName("ul")[0]; |
subMenu.style.display = "none"; | subMenu.style.display = "none"; | ||
} | } |
Revision as of 08:58, 22 July 2014
function displaySubMenu(div) { var subMenu = div.getElementsByTagName("ul")[0]; subMenu.style.display = "block"; } function hideSubMenu(div) { var subMenu = div.getElementsByTagName("ul")[0]; subMenu.style.display = "none"; }