Template:Sifuentes04

From 2014.igem.org

(Difference between revisions)
Line 295: Line 295:
imgname[1] = "http://2014.igem.org/wiki/images/4/4c/Featureboxdemo.jpg";
imgname[1] = "http://2014.igem.org/wiki/images/4/4c/Featureboxdemo.jpg";
imgname[2] = "http://2011.igem.org/wiki/images/b/b1/Img021.png";
imgname[2] = "http://2011.igem.org/wiki/images/b/b1/Img021.png";
 +
 +
        var imgname = new Array();
 +
imgname[0] = "http://2011.igem.org/wiki/images/c/cb/Img022.png";
 +
imgname[1] = "http://2014.igem.org/wiki/images/4/4c/Featureboxdemo.jpg";
 +
imgname[2] = "http://2011.igem.org/wiki/images/b/b1/Img021.png";
 +
 +
 +
function changeText(n) {
 +
function changeImg(n) {
function changeImg(n) {
-
var name = imgname[n];
 
var imgobj = document.getElementById('galImg');
var imgobj = document.getElementById('galImg');
-
imgobj.src = name;
+
imgobj.src = imgname[n];
}
}

Revision as of 15:20, 13 January 2015