hi i’m using a script made by
http://snook.ca/archives/javascript/simplest-jquery-slideshow
so basically the code i have now is
$(function(){
$('.fadein img:gt(0)').hide();
setInterval(function(){
$('.fadein :first-child').fadeOut()
.next('img').fadeIn()
.end().appendTo('.fadein');
},
6000);
});
I wonder if it’s possible to get the index of the current image that shows in anyway?
The way this script works, it keeps moving the position of the DOM elements so that your current
imgis always index 0 and the nextimgis always index 1. If you want to know the index out of your original order, you will need to store that data before the slideshow script runs: