This small DEMO mainly uses a box with a fixed length and width to display images. Put the images into the imagebox and connect them. Every time you change the image, change the margin-left of the imagebox's style attribute to create a carousel effect.