I try create simple rotation of images each time , i try this but no works , basically i want repit and auto increment the "id" for show all images as transition
My Code :
<script>
function slider(id) {
var n_image = 3;
if (id == 0) {
var i = 0;
} else {
var i = id + i;
}
setTimeout(function () {
$(".im_" + i).fadeIn(2000).delay(2000).hide(1000);
}, 1000);
}
</script>
The setTimeout call each 1 seconds and i want add one number more in each time for example the slide 1 slide 2 and continue and if the number it´s more of max images exists return the first number other time , and continue the loop
Thank´s for the help , the best regards