--Create an array to contain the path to the image’s source. Don’t hardcode the path into the array. Use a
loop to retrieve the name of the file from the source of the image (ie. <img src="img/house.jpg"/>.--
this is my jQuery
$(function(){
var slideShowContainer = $('.slideShow'),
slideShowItem = '.slides li',
transitionTime = 1000,
pauseTime = 3000,
curSlide = 0,
int = setInterval(function(){
if(curSlide === parseInt($(slideShowItem).length - 1)){
curSlide = 0;
} else {
curSlide++;
}
slideShowContainer.animate({ scrollLeft: $(slideShowItem).width() * curSlide }, transitionTime);
}, pauseTime);
})
and this is whats in my body
<body>
<div class="slideShow">
<ul class="slides">
<li><img src="dessert1.png"></li>
<li><img src="dessert2.png"></li>
<li><img src="yummy.jpg"></li>
</ul>
</div>
</body>
</html>
my question is how do you put an array with my JQ code as the teacher said it?
thank you