Team:AITM-Nepal
From 2013.igem.org
(Difference between revisions)
Line 218: | Line 218: | ||
number=0; | number=0; | ||
} | } | ||
- | + | // document.slider.src = img[number].src; | |
} | } | ||
function prev(){ | function prev(){ | ||
- | + | // number --; | |
if (number <0){ | if (number <0){ | ||
number = 2; | number = 2; | ||
} | } | ||
- | + | // document.slider.src= img[number].src; | |
} | } | ||
var intervalId = setInterval(function(){ | var intervalId = setInterval(function(){ | ||
- | + | // number --; | |
if (number <0){ | if (number <0){ | ||
number = 2; | number = 2; | ||
} | } | ||
- | + | // document.slider.src= img[number].src; | |
}, 4000); | }, 4000); | ||
Revision as of 20:03, 21 November 2014