Salve a tutti,
ho messo un range che mi modifica la velocità dello slideshow ma non funziona correttamente. Qualcuno mi potrebbe aiutare gentilmente? Grazie
codice:
<input id="r" type="range" min="500" max="5000" value="500" onchange="change()">
function change(){
var a = parseInt(document.getElementById('r').value);
return a;
}
function img(){
var a = change();
if(document.getElementById('check').checked) {a = 2000;}
$('.slideshow img:gt(0)').hide();
setInterval(function img(){$('.slideshow :first-child').fadeOut().next('img').fadeIn().end().appendTo('.slideshow')},a);
}
ho messo un range che mi modifica la velocità dello slideshow ma non funziona correttamente. Qualcuno mi potrebbe aiutare gentilmente? Grazie
codice:
<input id="r" type="range" min="500" max="5000" value="500" onchange="change()">
function change(){
var a = parseInt(document.getElementById('r').value);
return a;
}
function img(){
var a = change();
if(document.getElementById('check').checked) {a = 2000;}
$('.slideshow img:gt(0)').hide();
setInterval(function img(){$('.slideshow :first-child').fadeOut().next('img').fadeIn().end().appendTo('.slideshow')},a);
}
Ultima modifica: