1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Random Images For Adsense

Discussion in 'Placement / Reviews / Examples' started by Strafe, Sep 22, 2006.

  1. #1
    Hello,

    I've seen a lot of people placing random images beside or above their adsense ads. I was wondering if they used a script to do this? If so, where can I find such? I'd like to place 4 images next to my adsense rectangular format. I'd also like it to be forced not to show the same image on each box.
     
    Strafe, Sep 22, 2006 IP
  2. Angelus

    Angelus Well-Known Member

    Messages:
    1,622
    Likes Received:
    52
    Best Answers:
    0
    Trophy Points:
    138
    #2
    You could code it yourself in php, with random function... if you know a little php...

    p.l.u.r.
     
    Angelus, Sep 22, 2006 IP
  3. Strafe

    Strafe Peon

    Messages:
    174
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hmm, my php knowledge is very minimal.. is there some ready-made script for this?
     
    Strafe, Sep 22, 2006 IP
  4. AtanasYanev

    AtanasYanev Active Member

    Messages:
    407
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    80
    #4
    http://photomatt.net/scripts/randomimage

    But one <img src="random.php?pic=<?php echo rand(0,999);?>" /> and you are done ;)

    edit
    yuuup, the one I gave you ;)
    just enter the directory where your images are and point this in "folder" var and thats all ;)
     
    AtanasYanev, Sep 22, 2006 IP
  5. Strafe

    Strafe Peon

    Messages:
    174
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I see, so it won't repeat the same image if I assign four random images beside my ads?

    Also, I was wondering if there was an available code around here that would properly position the images so they are evenly leveled with the four division rows of the google ads.
     
    Strafe, Sep 22, 2006 IP
  6. yfs1

    yfs1 User Title Not Found

    Messages:
    13,798
    Likes Received:
    922
    Best Answers:
    0
    Trophy Points:
    0
    #6
    yfs1, Sep 22, 2006 IP