I have 4 images: one image over the other within div
. It is over each other because it is in absolute
position. I would like to make a simple slideshow , just to learn its basic operation inside a loop . What's wrong with the code below?
(Note: The whole code is available here )
$(document).ready(function() {
for ($n = 0; $n < 3; $n++) {
$('img:eq($n)').fadeToggle().delay(3000).fadeToggle();
}
});