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

Chapter 5. More Fun with Images > Making the Banner Cycling Wait for the User

Making the Banner Cycling Wait for the User

If you're using small GIFs in your cycling banner, you probably won't have to worry that one GIF won't be done loading before the next one begins. But if you are using this technique for a slideshow, you might want to make sure that the user has seen all of one graphic before displaying the next—which is especially useful if the user has a slow Internet connection. Script 5.3 shows you how to vary your script to accomplish the goal. It is based on Script 5.2, but it adds another loop within the rotate() function.

Script 5.3. You can delay the loading of the next image until the current one has finished loading.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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