Building Wraparound SlideshowsSlideshows on Web sites present the user with an image and let the user control the progression (either forward or backward) of the images. JavaScript gives the user the interactive control needed. Script 4.16 shows the HTML needed, and the JavaScript in Script 4.17 has what you need to add slideshows to your pages. Script 4.16. This HTML page creates a slideshow.
Script 4.17. This script builds a slideshow that the user can click through using links to control movement forward and back.
This script builds a slideshow that wraps aroundthat 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.To build a wraparound slideshow:
|
Friday, December 4, 2009
Building Wraparound Slideshows
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment