need link rotator script

Discussion in 'HTML & Website Design' started by ronmojohny, Jul 21, 2007.

  1. #1
    Hi, I want to find a script (javascript or php) that can rotate link destinations when users click on an image ad on my site. (clicking on the image goes to link destination #1, clicking the image again would then go to link destination #2, ect. In order or at random) Does anyone know of any?

    Thanks, RonMo
     
    ronmojohny, Jul 21, 2007 IP
  2. Doskono

    Doskono Peon

    Messages:
    153
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    What kind of script looking for free or...?
     
    Doskono, Jul 21, 2007 IP
  3. ronmojohny

    ronmojohny Well-Known Member

    Messages:
    729
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    133
    #3
    I know there are free ones, and ones that cost $5, I have no problem spending a few bucks if the code is compact and works with IE 7 & Firefox
     
    ronmojohny, Jul 21, 2007 IP
  4. mgware

    mgware Peon

    Messages:
    34
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I hope this was wath you want:

    
    <script language="javascript">
    // here goes the links separated by a single colon
    links = new Array("link1", "link2", "another link");
    n = Math.round(Math.random() * (links.length-1));
    document.write('<a href="'+links[n]+'"><img src="image URL" /></a>');
    </script>
    
    Code (markup):
     
    mgware, Jul 21, 2007 IP
  5. Justin Nijs

    Justin Nijs Well-Known Member

    Messages:
    631
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    110
    #5
    I have one with admin for 10$

    May sound expensive but it's a very nice script.
     
    Justin Nijs, Jul 21, 2007 IP
  6. ronmojohny

    ronmojohny Well-Known Member

    Messages:
    729
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    133
    #6
    Thanks MGWARE, that's exactly what I was looking for.

    -RonMo
     
    ronmojohny, Jul 21, 2007 IP
  7. eadkung

    eadkung Active Member

    Messages:
    148
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    58
    #7
    Great!! i'm looking for it too.
    Thanks a lot. :)
     
    eadkung, Jul 21, 2007 IP