I'm trying to change the background of a div via jQuery with a different delay between the images. So far I've got this:
$(document).ready(function() {
$("#Top").delay(10000).queue(function(){
$(this).css({"background-image":"url(img/Top_Green.jpg)"});
});
});
Which works just fine, but what I really want is this:
- Original Background
- delay
- Background 2
- short delay
- Background 3
- delay
And then loop those steps. I've seen different ways to do it, but there was always 1 set interval. I've been playing around with the code up there trying to put more items in the queue, but I never get it to work.