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

Randomizing Banner Ads

Okay, they're annoying, but they're popular. Banner ads can be sold for an amazing amount of money if your site is well-traveled. You've seen how to dynamically show a series of images, but you haven't created a single image that is dynamic. Using a dynamic table with a collection of images gets you halfway there, but we want a single image that changes randomly instead.

What Do I Need to Get Started?

Before reading any further into today's lesson, you'll need to prepare your computer by downloading support files from the http://downloads.cutelittledogs.com/ Web site and use them to create a new site on your hard drive.

  • You should define a new site named after the project (such as Day 15Banners)

  • You should copy the files from inside the banner archive of Day 15 found on http://downloads.cutelittledogs.com/ into the project directory.

  • The database used for the banner system should be set up with a data source named day15banner as defined in Day 7.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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