Template:Sifuentes04

From 2014.igem.org

(Difference between revisions)
Line 346: Line 346:
changeImg(galimgn);
changeImg(galimgn);
}
}
 +
 +
 +
function scrollRt() {
 +
i = i + speed;
 +
var div = document.getElementById("cont1");
 +
div.scrollLeft = i;
 +
if (i > div.scrollLeft) {i = 500;}
 +
t1=setTimeout("scrollRt()",100);
 +
}
 +
 +
function scrollLf() {
 +
i = i - speed;
 +
var div = document.getElementById("cont1");
 +
div.scrollLeft = i;
 +
if (i < 0) {i = 0;}
 +
t1=setTimeout("scrollLf()",100);
 +
}
 +

Revision as of 22:29, 12 January 2015