Freddyjames
Senior Member
- Jul 4, 2011
- 843
- 1,560
I have a site that gives a "boost" to a popular online browser game. Each page I set up generates a set of time-stamped links to click which gives the "boost" to the player through facebook.
The question is - is it possible for those links to get "clicked" automatically every 8 hours?
This is the Java I use on each page that generates the links:
What I want to do, is have each link auto-clicked every 8 hours, or at least auto-clicked when someone goes to the page itself.
Many thanks in advance for any help or advice.
The question is - is it possible for those links to get "clicked" automatically every 8 hours?
This is the Java I use on each page that generates the links:
Code:
<script type="text/javascript">
<!--
var d = new Date()
month=(d.getUTCMonth()+1).toString();
if(month.length<2) month = "0" + month;
day=(d.getUTCDate()).toString();
if(day.length<2) day = "0" + day;
hour=(d.getUTCHours()).toString();
if(hour.length<2) hour = "0" + hour;
minute=(d.getUTCMinutes()).toString();
if(minute.length<2) minute = "0" + minute;
for (x=1 ; x<=10 ; x++)
{
xx = x.toString();
if (xx.length<2) xx = "0" + xx;
h= "http://xxxxxxxxxxxxxxx/xxxxxxxxxxxx/facebook.xxxxxxxxxx.php?F=xxxxxxxxxxxxxxxxx=" + d.getUTCFullYear() + "." + month + "." + day + "+" + hour + "." + minute + "." + xx + "xxxxxxxxxxxxxxxxxx";
document.writeln("<p>"+("Link "+x).link(h)+"</p>");";
document.writeln("<p>"+("Link "+x).link(h)+"</p>");
}
//-->
</script>
What I want to do, is have each link auto-clicked every 8 hours, or at least auto-clicked when someone goes to the page itself.
Many thanks in advance for any help or advice.
Last edited: