• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 3. Fun with Images > Creating Multiple Cycling Banners

Creating Multiple Cycling Banners

If you want to have more than one cycling banner on a page, it takes just a bit more code. You'll need to set up the array and the variables for each banner separately, as shown in Script 3.10. The arrays, as seen in the previous section in this chapter, contain references to the images in each banner, and the script uses the variables as counters to keep track of which image is currently being displayed. You can see the result in Figures 3.12, 3.13, and 3.14.

Figure 3.12. This page has two banners, each with three images…



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint