<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="container-fluid" id="searchBG">
<div class="row">
<h2>Create your snippet's HTML, CSS and Javascript in the editor tabs</h2>
</div>
<div class="row">
<h2>Create your snippet's HTML, CSS and Javascript in the editor tabs</h2>
</div>
<div class="row">
<h2>Create your snippet's HTML, CSS and Javascript in the editor tabs</h2>
</div>
</div>
$(function() {
var searchBGDIV = $('#searchBG');
var backgrounds = new Array(
'url("https://wallpaperbrowse.com/media/images/background-18.jpg")',
'url("https://wallpaperbrowse.com/media/images/background-1247931_960_720.jpg")',
'url("https://wallpaperbrowse.com/media/images/background-pictures-2.jpg")',
'url("https://wallpaperbrowse.com/media/images/background-wallpapers-26.jpg")'
);
var current = 0;
function nextBackground() {
searchBGDIV.css('background',
backgrounds[current = ++current % backgrounds.length]
);
searchBGDIV.css("background-position", "center center");
searchBGDIV.css("min-height", "400px");
setTimeout(nextBackground, 5000);
}
setTimeout(nextBackground, 5000);
searchBGDIV.css('background', backgrounds[0]);
searchBGDIV.css("min-height", "400px");
searchBGDIV.css("background-position", "center center");
});