I found a Super Simple URL Rotator

8 replies
Hi all,

Just wanna share a simple way to rotate urls/landing pages:

<script type="text/javascript">

var urls = new Array();
urls[0] = "http://www.google.com";
urls[1] = "http://www.ebay.com";

var random = Math.floor(Math.random()*urls.length);

window.location = urls[random];

</script>

That's it!!

I spent the past few hours searching for a simple way to do it. And finally found it here How to create a URL rotator.

Hope this helps!
#found #rotator #simple #super #url
  • Profile picture of the author PCH
    Thanks buddy,

    I'm sure that's gonna be super useful, but care to tell us where we need to stick that code?

    Politely now

    Cheers,
    Paul
    {{ DiscussionBoard.errors[8363062].message }}
    • Profile picture of the author Hackbridge
      Originally Posted by PCH View Post

      Thanks buddy,

      I'm sure that's gonna be super useful, but care to tell us where we need to stick that code?

      Politely now

      Cheers,
      Paul
      You may have followed the Squiddoo link as that's where the instructions are?

      Brian
      {{ DiscussionBoard.errors[8363322].message }}
      • Profile picture of the author PCH
        Originally Posted by Hackbridge View Post

        You may have followed the Squiddoo link as that's where the instructions are?

        Brian
        Duh, - thanks buddy! I didn't see the linked text. Got it now thanks
        {{ DiscussionBoard.errors[8363334].message }}
        • Profile picture of the author asciscopecunia
          Glad you found it useful!

          You can just paste it in the code section of any html page.

          All the best!
          {{ DiscussionBoard.errors[8364081].message }}
  • Profile picture of the author UnkwnUsr
    Anyone know if this solution would work with a caching service for WP?
    {{ DiscussionBoard.errors[8364959].message }}
  • Profile picture of the author Tim3
    You never know what you wanted until you find it.
    Very handy, thanks
    Signature

    {{ DiscussionBoard.errors[8365197].message }}
  • Profile picture of the author steveblom
    That looks great for a text link but If you were going to do an image link with that code, anybody know how to do it?
    {{ DiscussionBoard.errors[10635773].message }}
  • Profile picture of the author Randall Magwood
    What is a practical use for URL rotators? From all the sites that i've visited, they disrespect and hate the concept of URL rotators. Are these the same rotators that traffic exchanges like trafficswarm uses?
    {{ DiscussionBoard.errors[10636264].message }}

Trending Topics