I want to change this code into a code that instead of clicking a button does the feature evry 310 seconds all on its own..
How would i do it?
Heres the code...
(this is actually my favourite script that i've made this year)Code:<html> <head> <SCRIPT type="text/javascript"> newurls=new Array() newurls[0]="http://www.outwar.com/page.php?x=530740" newurls[1]="http://www.outwar.com/page.php?x=530740" newurls[2]="http://www.outwar.com/page.php?x=799044" newurls[3]="http://www.outwar.com/page.php?x=560612" function picksite() { now=new Date() num=(now.getSeconds())%4 top.location.href = newurls[num] } </script> </head> <body> <center> <h2>!Click after 5 mins!</h2> <form> <input type="button" value="Click Here" onClick="picksite()"> </form> </center> </body> </html>
Well ant ideas like say a countdown timer with VAR seconds or something?
I will need th entire script back because last time i messed up![]()
Thanks in advance




Reply With Quote