• 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 table with a collection of images gets us halfway there, but it doesn't handle changing the image each time the page is loaded.

Table Definitions

The key to setting up the changing image is writing a query that returns a different record each time. This is really easier than you might think, but before you can define this magically query, you need to create the database that will drive it.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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