Hi

I'm trying to get a slideshow working but the timings are all over the place.

I can make it loop through once, neatly, but thereafter the timings seem to out - I have a loop set up to run five times.

I think this is because the function is incrementing the delay values or something along those lines (I know there's a neater way to write this but I'm just starting out).

Code:
 function slideWinder () {

var x = 1

for (var x = 1; x < 5; x++) {

$('#slideone').delay(0).fadeIn(0).delay(2000).fadeOut(400);

$('#slidetwo').delay(2000).fadeIn(400).delay(2000).fadeOut(400);

$('#slidethree').delay(4000).fadeIn(400).delay(2000).fadeOut(400);

$('#slidefour').delay(6000).fadeIn(400).delay(2000).fadeOut(400);

$('#slidefive').delay(8000).fadeIn(400).delay(2000).fadeOut(400);

$('#slidesix').delay(10000).fadeIn(400).delay(2000).fadeOut(400);

}

}