SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Jun 2001
    Location
    no
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Looking for software

    I am looking for software that will make a link go to random pages. Confused? I want my link to go to random pages that I have created. The next time I click the link, it will go to a completely different page.

    thank you in advance

  2. #2
    SitePoint Enthusiast welded's Avatar
    Join Date
    Jun 2001
    Location
    vancouver.bc.ca
    Posts
    96
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i found this at javascripts.com. it does the job, but no promise that you wont get the same link more than once in a row

    Code:
    <SCRIPT LANGUAGE="JavaScript">
    <!--
    // Copyright 1999 - Ash Young, The Web Site Factory
    // ash@thewebsitefactory.co.uk
    
    y = 0;
    
    ad = new Array(y);
    
     ad[y++] = "<a href=\"http://www.link1.com\">link 1</a>"
     ad[y++] = "<a href=\"http://www.link2.com\">link 2</a>"
     ad[y++] = "<a href=\"http://www.link3.com\">link 3</a>"
    
    x = Math.floor(Math.random()*(y));
    document.write(ad[x]);
    
    // -->
    </SCRIPT>
    it's amazing what velocity can do
    when human beings are in season


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •