|
|
Line 1: |
Line 1: |
− | function buildMenu(){
| + | |
− | var menuHTML = '.';
| + | |
− | for(i1 = 0; i1 < pagenames.length; i1++){
| + | |
− | if(pagenames[i1].length <= 1){
| + | |
− | menuHTML += '<div onmouseout="dullMenu(this)"onmouseover="lightUpMenu(this, ' + i1 + ')" style = "vertical-align:text-bottom; height:100%; width:80px; float:left; text-align:center;"><a style = "color: #ffffff;text-decoration:none;" href="https://2015.igem.org/Team:' + address[i1][0] + '">' + pagenames[i1][0] + '</a></div>';
| + | |
− | }else{
| + | |
− | menuHTML += '<div onmouseout="dullMenu(this)"onmouseover="lightUpMenu(this, ' + i1 + ')" style = "vertical-align:text-bottom; height:100%; width:80px; float:left; text-align:center;">' + pagenames[i1][0] + '</div>';
| + | |
− | }
| + | |
− | }
| + | |
− | document.getElementById("Menu").innerHTML= menuHTML;
| + | |
− | //document.getElementById("SubMenu").style.visibility = "hidden";
| + | |
− | }
| + | |