I have an array of images
var photos = ["images/bg01.jpg", "images/bg02.jpg", "images/bg03.jpg"];
I am cycling through this array and making them the background of a div based on a interval
$("#bgimg" + activeContainer).css({
"background-image" : "url(" + photos[i] + ")",
"display" : "block",
"z-index" : currentZindex
});
EDIT: I need to preload all three images before I do my setInterval function.
Thanks in advance!!