Template:Sifuentes04

From 2014.igem.org

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

Revision as of 22:33, 12 January 2015