I cannot figure out randomizer redirect. Help!

Discussion in 'HTML & Website Design' started by Jared255, Jun 16, 2009.

  1. #1
    Ugh. I have been trying for a few hours and I simply cannot get it.

    What I am trying to do is what people go to my site, it randomly redirects them to another site. I know how to do a redirect but a random one is impossible!

    So, I want them to go to www.mywebsite.com and then get redirected to www.website.com, www.website1.com, www.website2.com, or www.website3.com.

    If anyone could give me any help I will give you a big hug. (Only if you wanted me to :D)

    Jared
     
    Jared255, Jun 16, 2009 IP
  2. Cash Nebula

    Cash Nebula Peon

    Messages:
    1,197
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Cash Nebula, Jun 16, 2009 IP
  3. pipisdicelana

    pipisdicelana Peon

    Messages:
    36
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    you can do it in html

    
    <meta http-equiv="refresh" content="3;URL=http://eyeew.com"/>
    
    HTML:
    in javascript

    
    This page will redirect to <a href="http://eyeew.com">eYeew!</a> after 3 seconds
    <script>
    	setTimeout( "document.location.href='http://eyeew.com'", 3000 )
    </script>
    
    HTML:
     
    pipisdicelana, Jun 16, 2009 IP
  4. Cash Nebula

    Cash Nebula Peon

    Messages:
    1,197
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Yeah, but he wants random redirection to one of several sites.
    Anyway, using meta refresh is discouraged these days.
     
    Cash Nebula, Jun 17, 2009 IP