View Full Version : Looking for a URL rotator!
rewq007
05-06-2002, 21:16/09:16PM
I am in need of a URL rotator. Not a remote hosted solution but a script of some type.
To put things in context I am creating an advertising co-operative and I will need to rotate a couple of hundred URL's from one website. The scripts for banner rotations are very similiar to what I need to accomplish but I can't seem to figure out how to alter them, or find one that is made to rotate a webpage!
Any help or even just pointing me in the right direction would be helpful!
rewq007
05-06-2002, 21:27/09:27PM
Just wanted to add that IF a common rotation script such as the one I am including here is used will it rotate evenly? I want to be fair!
SCRIPT LANGUAGE="Javascript">
var currentdate = 0
var theranlink = " "
var core = 0
function StringArray (n) {
this.length = n;
for (var i =1; i <= n; i++) {
this[i] = ' '
}
}
/// Change this to the number of total links you are rotating
link = new StringArray(10)
/// Change these to links you want to rotate
link[1] = 'http://www.netmarkpro.net/promote1/index.html'
link[2] = 'http://www.fsinetwork.com/promote1/index.html'
link[3] = 'http://www.nomorehits.com/cgi-bin/start.cgi?referrer=bmoline'
link[4] = 'http://www.viraltraffic.homestead.com'
link[5] = 'http://www.2coole.homestead.com/'
link[6] = 'http://free2sell.tripod.com'
link[7] = 'http://www.boxfrog.com/enter.php?affid=bmoline'
link[8] = 'http://www.free2sell.homestead.com'
link[9] = 'http://www.sitesell.com/webmarket7.html'
link[10] = 'http://www.netprofitcentral.net/2coole'
var ran = 60/link.length
function ranlink() {
currentdate = new Date()
core = currentdate.getSeconds()
adcore = Math.floor(core/ran)
core = adcore
theranlink = link[core]
self.location = theranlink
}
document.write("<a href='javascript:ranlink()'></a>")
var URL = "javascript:ranlink()"
var speed = 0000
function reload() {
location = URL
}
setTimeout("reload()", speed);
</SCRIPT>
ihelpyou
05-06-2002, 21:48/09:48PM
Welcome to the forums Ed! :hi:
One of our programmers in here should be able to answer your question.
Oh, I can answer that. No, it will rotate those links very randomly and not equally.
Advisor
05-06-2002, 21:57/09:57PM
Edited: Hmm...the cgi script center used to have something like that, but I don't see it any more. You might ask them: http://www.cgiscriptcenter.com/
rewq007
05-06-2002, 21:58/09:58PM
That's what I thought. O.k. does anyone have a script that will do this? I (as of right now) was planning to put in by hand the webpages...but would be willing to pay for some custom programming, unless anyone knows of this being available in open-source. This is pretty much what I will need.
1.) rotate an unlimited # of urls' (don't know if it matters but these pages will be inside of a framed page).
2.) I would like to have the script automatically pull the URL from a mysql database.
Blue
05-06-2002, 23:13/11:13PM
Don't know if this is what you're after but here goes:
(links may wrap)
http://www.hotscripts.com/Detailed/14051.html
http://webdeveloper.earthweb.com/webjs/item/0,,12744_61951_viewit,00.html
Hope this helps...
rewq007
05-06-2002, 23:20/11:20PM
That second one is close...but I think I need a custom solution to make it work.....Programmers??? let me knoe
vBulletin® v3.8.3, Copyright ©2000-2010, Jelsoft Enterprises Ltd.