i am trying to make a slideshow that counts the amount of images inside a div. and makes a clickable circle for each image.
this is the code that seems to fail:
l = heroimgs.length;
for(var i=0; i<l; i++){
$('#heronavpoint'+i).click(function(){
$('.heroimg:visible').fadeOut(800);
$('.heroimg:eq('+i+')').stop().delay(800).fadeIn();
});
}