Biomod/2013/OSU/media

From OpenWetWare

(Difference between revisions)
Jump to: navigation, search
Line 88: Line 88:
var imgs = ["http://openwetware.org/images/5/5b/OSU_Deformed_shape1.png", "http://openwetware.org/images/5/50/OSU_Deformed_shape2.png", "http://openwetware.org/images/8/8b/OSUwetlab1.jpg", "http://openwetware.org/images/d/dc/OSUwetlab2.jpg", "http://openwetware.org/images/0/09/OSUwetlab3.jpg", "http://openwetware.org/images/4/43/OSUwetlab4.jpg", "http://openwetware.org/images/b/be/OSUwetlab5.jpg"];
var imgs = ["http://openwetware.org/images/5/5b/OSU_Deformed_shape1.png", "http://openwetware.org/images/5/50/OSU_Deformed_shape2.png", "http://openwetware.org/images/8/8b/OSUwetlab1.jpg", "http://openwetware.org/images/d/dc/OSUwetlab2.jpg", "http://openwetware.org/images/0/09/OSUwetlab3.jpg", "http://openwetware.org/images/4/43/OSUwetlab4.jpg", "http://openwetware.org/images/b/be/OSUwetlab5.jpg"];
-
var captions = ["Front view of our structure", "Side 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", "Frontview of our structure", "Our lab", "Our lab again", "and again...", "Gel electrophoresis", "Examining the gel after running"];
var counter = 0;
var counter = 0;
 +
var testy = document.getElementById("slider-img");
function next(){
function next(){
counter++;
counter++;
if (counter >= imgs.length){counter = 0;}
if (counter >= imgs.length){counter = 0;}
-
document.getElementById("slider-img").setAttribute("src", imgs[counter]);
+
testy.setAttribute("src", imgs[counter]);
document.getElementById("img-caption").innerHTML = captions[counter];
document.getElementById("img-caption").innerHTML = captions[counter];
Line 103: Line 104:
counter--;
counter--;
if (counter < 0 ){counter = imgs.length - 1;}
if (counter < 0 ){counter = imgs.length - 1;}
-
document.getElementById("slider-img").setAttribute("src", imgs[counter]);
+
testy.setAttribute("src", imgs[counter]);
document.getElementById("img-caption").innerHTML = captions[counter];
document.getElementById("img-caption").innerHTML = captions[counter];

Revision as of 11:11, 29 August 2013


<< Back to Team Pages

Edit

Video Blogs

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

Photos

<<
>>

Front view of our structure

Please direct all inquiries to our group email at theohiomod@gmail.com.

Views
Personal tools