LittleMouse
Newbie
- Sep 15, 2015
- 5
- 0
I've been on the net a lot about bitcoin rotate, which are packed full of ads from a few places earning them money. I'm already using bitcoin (not that i have much) but was thinking of setting up a rotate site for myself, packing it full of referral links (which i already have). Now I've used a few websites builders and sadly... I script i got for the rotate, doesn't actually work, It might be that those sites don't support the code, :s?
Can someone check it out for me?
var s=[
"gin.htm",
Then site url's go here. in speechmarks and followed by a comma. ("",)
];
var adr,i,x=0,c=s.length;
function address() {
adr=prompt('Enter your bitcoin address:');
s=s.map(function(x){
return x.indexOf("a=") != -1 ? x + adr : x;
});
}
function next(){
x+=1;
if (x>c-1)
{
x=0;
}
changeSrc();
}
function prev(){
x-=1;
if (x<=0)
{
x=c-1;
}
changeSrc();
}
function jumpTo() {
i=prompt("Enter a number to skip to that faucet.");
x=0;
while (i!=x) {
if (x>c-2) {
break;
}
x+=1;
}
changeSrc();
}
function newTab() {
var win=window.open(document.getElementById("fm").src, '_blank');
win.focus();
}
function changeSrc() {
document.getElementById("fm").src=s[x];
}
I'm not sure why it won't work, does anyone know any good rotate scripts?
Can someone check it out for me?
var s=[
"gin.htm",
Then site url's go here. in speechmarks and followed by a comma. ("",)
];
var adr,i,x=0,c=s.length;
function address() {
adr=prompt('Enter your bitcoin address:');
s=s.map(function(x){
return x.indexOf("a=") != -1 ? x + adr : x;
});
}
function next(){
x+=1;
if (x>c-1)
{
x=0;
}
changeSrc();
}
function prev(){
x-=1;
if (x<=0)
{
x=c-1;
}
changeSrc();
}
function jumpTo() {
i=prompt("Enter a number to skip to that faucet.");
x=0;
while (i!=x) {
if (x>c-2) {
break;
}
x+=1;
}
changeSrc();
}
function newTab() {
var win=window.open(document.getElementById("fm").src, '_blank');
win.focus();
}
function changeSrc() {
document.getElementById("fm").src=s[x];
}
I'm not sure why it won't work, does anyone know any good rotate scripts?
Last edited: