Log in

View Full Version : Random URL Rotation Script wanted



trader
04-03-2009, 09:17 PM
I have a lot of URL's I would like to be able to run randomly, i.e. random site of the day, or site of the hour, or whatever time frame.

Anything I can use for that?

Nile
04-03-2009, 11:24 PM
Can it just be random site of the second? Also, do you want PHP? (This is the only way i could do this...)

trader
04-04-2009, 01:28 AM
Can it just be random site of the second? Also, do you want PHP? (This is the only way i could do this...)

That would be OK. Yes php is fine with me if best for you.

trader
04-04-2009, 03:39 AM
An additional need is I imagine there is code needed on each line (i.e. site05 or whatever) so want that code to be automatically inserted on the lines.

Say I have 150 URLs as an example, so when I copy & paste the 150 urls into the web page the needed extra code on each line be inserted when the urls are pasted to avoid hand editing each line. Hope its clear.

Nile
04-08-2009, 12:58 PM
Where are you keeping those URLs?

trader
04-12-2009, 12:59 AM
Where are you keeping those URLs?

I can supply a notepad txt file or excel.

trader
04-12-2009, 08:46 PM
Just to clarify, the urls's are tab delimited one per line and look like this

example1.com
example2.net
example3.org

etc

trader
04-14-2009, 05:59 PM
I have received no response from anyone since I posted my last 2 replies and was wondering if someone could possibly do this?

trader
04-16-2009, 03:26 PM
Still waiting for a response. Can anyone do this or at least suggest a place I can buy such a script?

trader
04-17-2009, 07:20 PM
I have no idea why no one here can help with this relatively simple sounding need. Perhaps it is par for the course?

X96 Web Design
04-17-2009, 09:51 PM
I think you probably want something like this random script (http://www.javascriptkit.com/script/script2/randomcontent.shtml), where you put in your content, and every time the page loads, a random piece of content is shown.

Hope that helps...

/ X96 \

trader
05-04-2009, 05:08 PM
Thanks X96 but I found a script on a different javscript site so what you suggested is not needed. However, I would appreciate someone showing a way to run the random url script as a link from a different website.

The way it works now is the script (snippet below) runs finding random url's on the same page where it is located. In other words I would like to place a link to the random link generator on a different site which then runs the random script on the other site and preferably (but not mandatory) not show the name of the site where all the url's are found. Hope this makes sense.


{
var myrandom=Math.round(Math.random()*(document.links.length-1))
window.location=document.links[myrandom].href
}