[Solved] CSS for background changing over time [duplicate]


Say you have an background files as image1.jpg, image2.jpg and so on. use following code to achieve you goal.

var count = 1;

setInterval(function(){
    $("body").css("background", "url(image"+ count +".jpg)")
    count++;
},30000);

solved CSS for background changing over time [duplicate]