Possible To Rotate Adverts On A Blogger Blog?

Discussion in 'Blogging' started by bad_bob00, Jun 8, 2009.

  1. #1
    Hi,

    I've got a blog at Blogger.com and I was just wondering if anyone knows how to rotate adverts on the site?
    For example, my site gets a lot of hits and I'm trying to find an offer that converts well. Usually I just add HTML and add the code for the advert, but I want to be able to rotate adverts and find out which ones do best on my blog.

    Any idea how this would be possible?



    Thanks for any help
     
    bad_bob00, Jun 8, 2009 IP
  2. Worldwidirectory

    Worldwidirectory Peon

    Messages:
    35
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You'll have to do it the same way most thing are done with blogger templates... with javascript. For instance:

    if (new Date().getTime()%2 == 0){
    document.write("... some code...");
    }else{
    document.write("... some other code...");
    }
     
    Worldwidirectory, Jun 8, 2009 IP
  3. bad_bob00

    bad_bob00 Active Member

    Messages:
    3,472
    Likes Received:
    56
    Best Answers:
    0
    Trophy Points:
    90
    #3
    Anyone know how to do this using javascript?


    Thanks for any more help
     
    bad_bob00, Jun 12, 2009 IP