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

Chapter 19. Behaviors > Preload Images

Preload Images

Images that are dependent on other behaviors are often best if preloaded. For example, if you have a rollover graphic, you would want the over state image of the button to be loaded before the event actually took place. If it wasn't loaded, the up state would swap out with a graphic that wasn't there, causing a broken image link to appear.

However, if you preloaded the rollover image, the behavior would be deactivated until that image was present and loaded. Typically, you'll add the Preload Images behavior to the <body> tag. To attach the Preload Images behavior, follow these steps:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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