Help with Java script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • BlueFly
    Confirmed User
    • Nov 2003
    • 716

    #1

    Help with Java script

    I am trying to write a script to redirect traffic to a random url selected from a list of urls. So far, I have had no luck. I don't know a lot about writing scripts. Anyone have a good script for this? TIA
    Now Taking Hard Link Trades
    BTW - NEVER use thexxxhost.com
  • chemicaleyes
    UNSTOPPABLE
    • Aug 2003
    • 11569

    #2
    search some script sites, there are loads of free scripts that do that..
    No way as way, No limitation as limitation. AmeriNOC formally PhatServers

    Comment

    • pudcat
      Confirmed User
      • Mar 2003
      • 1169

      #3
      haven't tested it though something like below should be fairly close to working.

      sites=Array("url1","url2","....");
      window.location=sites[math.round(math.random())*sites.length]
      SUBMIT YOUR BABE GALLERIES

      PROMOTE YOUR BLOG HERE

      always looking for hardlinks icq #207011694

      Thunder-Ball.net, good for hardlink exchanges

      Comment

      • BlueFly
        Confirmed User
        • Nov 2003
        • 716

        #4
        Originally posted by chemicaleyes
        search some script sites, there are loads of free scripts that do that..
        I haven't had much luck there... I found one that was close, and butchered it up pretty bad. It did absolutely jak shit when I was done with it.
        Now Taking Hard Link Trades
        BTW - NEVER use thexxxhost.com

        Comment

        • BlueFly
          Confirmed User
          • Nov 2003
          • 716

          #5
          Originally posted by pudcat
          haven't tested it though something like below should be fairly close to working.

          sites=Array("url1","url2","....");
          window.location=sites[math.round(math.random())*sites.length]
          That look promising... and a lot easier than what I was messing with. I will dicker with it. Thanks!
          Now Taking Hard Link Trades
          BTW - NEVER use thexxxhost.com

          Comment

          • BlueFly
            Confirmed User
            • Nov 2003
            • 716

            #6
            Originally posted by BlueFly
            That look promising... and a lot easier than what I was messing with. I will dicker with it. Thanks!
            hmmmm, that one doesn't seem to work.
            Now Taking Hard Link Trades
            BTW - NEVER use thexxxhost.com

            Comment

            • pudcat
              Confirmed User
              • Mar 2003
              • 1169

              #7
              sites[Math.round(Math.random()*(sites.length-1))]
              SUBMIT YOUR BABE GALLERIES

              PROMOTE YOUR BLOG HERE

              always looking for hardlinks icq #207011694

              Thunder-Ball.net, good for hardlink exchanges

              Comment

              • BlueFly
                Confirmed User
                • Nov 2003
                • 716

                #8
                Originally posted by pudcat
                sites[Math.round(Math.random()*(sites.length-1))]
                That got it! Thanks for your help!
                Now Taking Hard Link Trades
                BTW - NEVER use thexxxhost.com

                Comment

                Working...