Backstretch is a simple jQuery plugin that allows you to add a dynamically-resized, slideshow-capable background image to any page or element. The image will stretch to fit the page/element, and will automatically resize as the window/element size changes[source]
Here the simple steps to create background slider using jQuery-Backstretch Plugin:
Download the jQuery-Backstretch Plugin on github : https://github.com/jquery-backstretch/jquery-backstretch or in its official web :
http://www.jquery-backstretch.com
Open the download folder, Move all jQuery-Backstretch file and save it on Webserver. Save it in Xampp/htdocs/ if you use XAMPP. While you use Linux create it at var/www.
Open your text editor.
Create new file and save as index.php. Save it on the Backstretch folder.
Add the HTML element as usual.
<html>
<head>
<title>Background Slider</title>
</head>
<body>
</body>
</html>
<h2 style="color:red">BACKGROUND SLIDER</h2>
<p style="color:white">Backstretch is a simple jQuery plugin that allows you to add a dynamically-resized,
slideshow-capable background image to any page or element. The image will stretch to fit the page/element,
and will automatically resize as the window/element size changes</p>
<head> element.<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="jquery.backstretch.min.js"></script>
<script> tag. You can put it in ,head> element or in <body> element.<script></script>
$.backstretch(["img (1).jpg","img (2).jpg","img (3).jpg","img (4).jpg"], {duration: 1500, fade: 800});
<html>
<head>
<title>Background Slider</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="jquery.backstretch.min.js"></script>
</head>
<body>
<center>
<h2 style="color:red">BACKGROUND SLIDER</h2>
<p style="color:white">Backstretch is a simple jQuery plugin that allows you to add a dynamically-resized,
slideshow-capable background image to any page or element. The image will stretch to fit the page/element,
and will automatically resize as the window/element size changes</p>
</center>
<script>
$.backstretch(["img (1).jpg","img (2).jpg","img (3).jpg","img (4).jpg"], {duration: 1500, fade: 800});
</script>
</body>
</html>