Team:HIT-Harbin/js/main.js

From 2014.igem.org

Revision as of 04:08, 23 July 2014 by Newyear (Talk | contribs)

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"; } function sideMenu(x){ var arr=document.getElementsByName("rnav"); if (arr[i].style.display == "block")

 {
 arr[i].style.display == "none";
 }

else

 {
 var y=x-1;
 arr[y].style.display == "block";
 }

}