Difference between revisions of "Team:Reading/Team"
Line 37: | Line 37: | ||
var menucount = 0; | var menucount = 0; | ||
− | function changeBioContent( | + | function changeBioContent(index){ |
//add a </br> to break the line, also do not include " without a \ before, eg: \" | //add a </br> to break the line, also do not include " without a \ before, eg: \" | ||
Line 53: | Line 53: | ||
var bios = [bennyBio, chrisBio, emilyBio, izzahBio, mattBio, nasserBio, peteRBio, PeteWHBio, tomBBio, tomWLBio, jennyPasang]; | var bios = [bennyBio, chrisBio, emilyBio, izzahBio, mattBio, nasserBio, peteRBio, PeteWHBio, tomBBio, tomWLBio, jennyPasang]; | ||
document.getElementById("bioframe").innerHTML= bios[index]; | document.getElementById("bioframe").innerHTML= bios[index]; | ||
− | |||
} | } | ||
Line 78: | Line 77: | ||
teamHTML += '<tr>'; | teamHTML += '<tr>'; | ||
for(i2 = 0; i2 < 3; i2++){ | for(i2 = 0; i2 < 3; i2++){ | ||
− | if(index < names.length){teamHTML += '<td align="center">' + names[index] + '<div style="border-style:solid; border-color:#ffffff; border-width:5px; border-radius:50px; height: 100px; width: 150px; background-size:cover; background-image:url(https://static.igem.org/mediawiki/2015' + pictureName[index] + ');" onmouseover="changeBioContent( | + | if(index < names.length){teamHTML += '<td align="center">' + names[index] + '<div style="border-style:solid; border-color:#ffffff; border-width:5px; border-radius:50px; height: 100px; width: 150px; background-size:cover; background-image:url(https://static.igem.org/mediawiki/2015' + pictureName[index] + ');" onmouseover="changeBioContent(' + index + ')"></div></td>'; |
index += 1;} | index += 1;} | ||
else{ | else{ |
Revision as of 18:03, 24 July 2015
Reading University's iGEM Team 2015
.
|
Roll over the images to see the team member bio and extra photos in here. |