View Full Version : looking for a script that rotates link addresses from a list
dragin99
07-16-2006, 01:48 AM
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!
jscheuer1
07-16-2006, 05:45 AM
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.
dragin99
07-16-2006, 04:49 PM
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!
jscheuer1
07-16-2006, 05:18 PM
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.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.