Results 1 to 4 of 4

Thread: looking for a script that rotates link addresses from a list

  1. #1
    Join Date
    Jul 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Cool looking for a script that rotates link addresses from a list

    I was hoping someone could either point to an existing script or give me a clue as to how to code a script that would allow me to create link button that accesses a list of link addresses that would move down the list each time the button was clicked. ( i.e visitor 1 clicks on the link button and goes to link 1 then when the next visitor clicks on the button he goes to the next link on the list and so on.
    Many thanks for reading this!

    Hope I am posting this in the right area. If not many apologies!

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Javascript has no way of knowing what one visitor has done on a page that is transferable to what another visitor sees or experiences on a page. The closest thing would be either a script that presents a random link from a list on each page load or one that chooses from a list each time the page is loaded depending upon what time it is on the local user's computer.

    Server side scripting should be able to do what you are talking about but, I am not certain it could.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Jul 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Thanks for the reply...

    Thanks for the reply....
    I was thinking along the same lines as you ...I was thinking that if a random link script could be used then I should be able to make in sequence in ascending order as well. But just can't seem to get it or find a script for it.
    Maybe another aproach is to ask for a suggestion...
    What I am trying to do is this: I have a list of links of different people selling the same thing so when a visitor comes to my site and clicks on the link for the product it would take them to a different persons site each time...thereby offering a fair dispersion of click thru's. Does that make sense?
    Anyway I can't beleive I'm the only one doing this so I thought a script for this kind of function would already exist.
    Any thoughts would be appreciated!

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Can't be done using javascript. If your host has any server side languages available such as asp, php, shtml, jsp, etc. This might be able to be done using one or possibly any of those but, although I am somewhat familiar with asp, I am not certain how to go about it even in that language. I would suggest first finding out which server side languages you have available and then posting in that forum here and at codingforums.com for advice. Googling for a template on how to do this in one of those languages if you have it available may also yield helpful results.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •