please help me and tell me what’s wrong here….
also i dont want to use jq plugin
when i setInterval the code the pictures are coming with a different way
sorry for my bad english
<code>
$(function(){
function slideshow(){
$('.img4').fadeOut(2800,null,function(){
$('.img3').fadeOut(2800,null,function(){
$('.img2').fadeOut(2800,null,function(){
$('.img1').fadeIn(2800,null,function(){
$('.img2').fadeIn(2800,null,function(){
$('.img3').fadeIn(2800,null,function(){
$('.img4').fadeIn(2800,null,function(){
$('.img4').fadeOut(2800)
})
})
})
})
})
})
})
}
//slideshow()
setInterval(slideshow,1000);
</code>
You are starting a new slideshow every second, so after a while you will have hundreds of slideshows trying to animate the same objects.
Instead of having an interval that starts new slideshows, start the next when the first finishes: