To create the JavaScript slideshow, first of all you need to create a few images using some graphics tools, or you can snap some photos with your digital camera or your smartphone. In our example, we have created four images and we named them as banner1.jpg, banner2.jpg, banner3.jpg and banner4.jpg. Save the images in the same folder as the HTML file slideshow.htm which will be used to show the slides.