1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Looking for a domain spinning script

Discussion in 'General Scripting Chat' started by Inception_AC, Aug 20, 2014.

  1. Inception_AC

    Inception_AC Jr. Executive VIP Jr. VIP Premium Member

    Joined:
    Feb 16, 2011
    Messages:
    1,620
    Likes Received:
    1,131
    Hey

    I already have a script however it was designed to spin facebook apps and isnt working :(.

    Basically I want to be able to visit www.aaa.com and it will randomly send me to either www.bbb.com or www.ccc.com.

    does anyone have one of these? I know its pretty simple but im not the smartest when it comes to this

    cheers!
     
  2. TrafficWizard

    TrafficWizard Junior Member

    Joined:
    Aug 22, 2014
    Messages:
    160
    Likes Received:
    26
    • <script type="text/javascript">
    • var yourDomainNames = new Array("bbb", "ccc"); // list your domain names
    • function randomPick()
    • {
    • window.location = yourDomainNames[Math.floor(yourDomainNames.length*Math.random())]; // random picker
    • }
    • </script>


      Just google it :)