script: Carousel slideshow

I don't know much about making a webpage, but am learning slowly. On my teacher webpage a managed to get the carousel slideshow, but I don't know how to add my own...