Team:WHU-China
From 2013.igem.org
(Difference between revisions)
IgnatzZeng (Talk | contribs) |
IgnatzZeng (Talk | contribs) |
||
Line 83: | Line 83: | ||
//variable that will increment through the images | //variable that will increment through the images | ||
var step=1 | var step=1 | ||
- | function stepplus(){ | + | function stepplus(){ |
- | document.getElementById("nextimg").onclick) | + | if(document.getElementById("nextimg").onclick)) |
+ | step++ | ||
+ | } | ||
function slideit(){ | function slideit(){ | ||
//if browser does not support the image object, exit. | //if browser does not support the image object, exit. | ||
Line 98: | Line 100: | ||
//call function "slideit()" every 2.5 seconds | //call function "slideit()" every 2.5 seconds | ||
setTimeout("slideit()",4500) | setTimeout("slideit()",4500) | ||
+ | stepplus() | ||
} | } | ||
slideit() | slideit() |
Revision as of 03:38, 21 September 2013