Results 1 to 5 of 5

Thread: How to change this... [resolved]

Threaded View

  1. #1

    Thread Starter
    Frenzied Member thegreatone's Avatar
    Join Date
    Aug 2003
    Location
    Oslo, Norway. Mhz:4800 x12
    Posts
    1,333

    Arrow How to change this... [resolved]

    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...
    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>
    (this is actually my favourite script that i've made this year)

    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
    Last edited by thegreatone; May 20th, 2005 at 01:24 PM.
    Zeegnahtuer?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width