Building Wraparound Slideshows
This script builds a slideshow that wraps around—that is, if you go past the end of the list you go back to the beginning and vice versa. Figure 4.14 shows the new slideshow.
Figure 4.14. Clicking the Previous or Next link calls the processPrevious() or processNext() function, respectively.
Script 4.16. This HTML page creates a slideshow.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML ...