Trying to create a background-image slideshow and am getting this error... This is the code I'm trying to implement:
var $j = jQuery.noConflict();
$j( function(){
var bgArr = [ 'sample1.jpg','sample2.jpg','sample3.jpg' ];
function backgroundSlide(i) {
$j("#home_sub_banner").css("background-image", "url("+bgArr[i++]+")");
if (i == bgArr.length) i = 0;
var st = setTimeout(arguments.callee(i), 1000);
}
backgroundSlide(0)
});