Ad color rotation - Quick question

Discussion in 'Programming' started by addedtraffic, Apr 13, 2007.

  1. #1
    Anyone have a program that does their ad color rotation? - so that users click on them more, as they stand out.

    Or should I just set up an array that pulls values, into the code. Any suggestions?

    Not great at PHP, would need some help figuring out how to keep colors so that the ads dont show yellow on yellow and such.

    Any ideas, will rep. Thanks!
     
    addedtraffic, Apr 13, 2007 IP
  2. jimrthy

    jimrthy Guest

    Messages:
    283
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Lots of different options, depending on how fancy you want to get.

    One way that springs to mind is to set up a couple of tables in the database. One would have the different color combinations you want to use. The other tracks the last combination used. Every time your server-side script runs, it uses the next combination to populate your adsense code.

    A simpler way would just be to have an array of the color combinations, then store the last combination displayed in $_SESSION. But then you have to update your script to change colors, instead of just making database changes.
     
    jimrthy, Apr 14, 2007 IP
    addedtraffic likes this.
  3. addedtraffic

    addedtraffic Peon

    Messages:
    250
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Rep Added, thanks for the advise, I will try it out. New to PHP, but I will try it, by any chance do you have aim or msn?
     
    addedtraffic, Apr 14, 2007 IP