SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Evangelist
    Join Date
    Jan 2002
    Posts
    457
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Random link script?

    How do I create a javascript script that will insert a random link? I'm a javascript newbie, just to let you know.

  2. #2
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Here's a randomizer script; you can use it with just about anything (images, media, links, quotes, etc.).
    http://www.webreference.com/javascri...13/arrays.html

  3. #3
    SitePoint Evangelist
    Join Date
    Jan 2002
    Posts
    457
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is there anyway I can delay the time limit that a certain link is used? Let's say I wanted to have an article of the week, with the link changing every thursday. Could I do that?

  4. #4
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Originally posted by Joshua Clinard
    Is there anyway I can delay the time limit that a certain link is used? Let's say I wanted to have an article of the week, with the link changing every thursday. Could I do that?
    This would probably be best accomplished with server-side scripting. Do you have access to PHP or ASP?

  5. #5
    SitePoint Evangelist
    Join Date
    Jan 2002
    Posts
    457
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, PHP for sure. I know some very basic php commands, enough to modify someone's small php script. Could you point me in the direction to get this accomplished?


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
  •