Team:WHU-China

From 2013.igem.org

(Difference between revisions)
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(){step++}
+
                 function stepplus(){
-
                 document.getElementById("nextimg").onclick)=function(){stepplus()}
+
                 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

We strongly recommend you to use a non-IE core browser, for example Firefox, Chrome, Safari, or Opera