Template:Sifuentes04

From 2014.igem.org

(Difference between revisions)
Line 295: Line 295:
imgname[1] = "https://static.igem.org/mediawiki/2014/4/4c/Featureboxdemo.jpg";
imgname[1] = "https://static.igem.org/mediawiki/2014/4/4c/Featureboxdemo.jpg";
imgname[2] = "https://static.igem.org/mediawiki/2011/b/b1/Img021.png";
imgname[2] = "https://static.igem.org/mediawiki/2011/b/b1/Img021.png";
 +
 +
        var imgname = new Array();
 +
imgname[0] = "https://static.igem.org/mediawiki/2011/c/cb/Img022.png";
 +
imgname[1] = "https://static.igem.org/mediawiki/2014/4/4c/Featureboxdemo.jpg";
 +
imgname[2] = "https://static.igem.org/mediawiki/2011/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