Biomod/2013/OSU/media

From OpenWetWare

(Difference between revisions)
Jump to: navigation, search
Line 90: Line 90:
var allImgs = imgs;
var allImgs = imgs;
var structureImgs = [imgs[0], imgs[1]];
var structureImgs = [imgs[0], imgs[1]];
-
var LabImgs = [imgs[2], imgs[3],imgs[4],imgs[5],imgs[6]];
+
var labImgs = [imgs[2], imgs[3],imgs[4],imgs[5],imgs[6]];
var captions = ["Side view of our structure", "Front view of our structure", "Our lab", "Our lab again", "and again...", "Gel electrophoresis", "Examining the gel after running"];
var captions = ["Side view of our structure", "Front view of our structure", "Our lab", "Our lab again", "and again...", "Gel electrophoresis", "Examining the gel after running"];
Line 97: Line 97:
function changeImages(type){
function changeImages(type){
-
alert(type);
+
if (type=="lab"){imgs = labImgs;}
 +
else if (type=="struct"){imgs = structureImgs;}
 +
else { imgs = allImgs }
counter = 0;
counter = 0;
document.getElementById("slider-img").setAttribute("src", imgs[counter]);
document.getElementById("slider-img").setAttribute("src", imgs[counter]);
Line 141: Line 143:
<h1>Photos</h1>
<h1>Photos</h1>
-
<a onClick="changeToLab("lab");">Lab Photos</a>
+
<a onClick="changeImages("lab");">Lab Photos</a>
-
<a onClick="changeToStructure("struct");">Structure Photos</a>
+
<a onClick="changeImages("struct");">Structure Photos</a>

Revision as of 11:27, 29 August 2013


<< Back to Team Pages

Edit

Video Blogs

View the rest of our Video Blog posts on out Youtube Channel!

Photos

Lab Photos Structure Photos
<<
>>

Front view of our structure


Views
Personal tools