0
Hello, Good Night!
I am developing a web site, and watching a video class I managed to create a slide in Javascript, only I need it to pass with a slower Transition because it is very fast passed between the slides. I researched and unfortunately I could not do, someone can help me?
<div class="slide">
<a href=""><img id="banner"></a>
</div>
<script type="text/javascript">
var intervalo = 5000;
function slide1() {
document.getElementById("banner").src="img/slide1.png";
setTimeout("slide2()", intervalo);
}
function slide2() {
document.getElementById("banner").src="img/slide2.png";
setTimeout("slide3()", intervalo);
}
function slide3() {
document.getElementById("banner").src="img/slide3.png";
setTimeout("slide4()", intervalo);
}
function slide4() {
document.getElementById("banner").src="img/slide4.png";
setTimeout("slide1()", intervalo);
}
</script>
Thank you!
Think 5 seconds too fast?
– Sam