Page 1 of 1

How to uses timer in PHP?

Posted: Wed Jul 02, 2003 8:27 am
by genhits
:x
I want to Uses timer look like Autosurf website (etc: http://www.autohits.dk) can i uses PHP if i can please tell me how to?
Thank you..

Posted: Wed Jul 02, 2003 8:51 am
by qartis
Do you want a page to automatically change after a short amout of time, in the user's browser? If so, that's javascript that does that.

Posted: Wed Jul 02, 2003 8:52 am
by Gappa
yeah i was thinking java would be the way to go.. not sure what he/she is really after tho...

How To uses timer in Java script

Posted: Wed Jul 02, 2003 9:07 am
by genhits
[quote="qartis"]Do you want a page to automatically change after a short amout of time, in the user's browser? If so, that's javascript that does that.[/quote] :)

How to uses JAVA script please show example for me.

Posted: Wed Jul 02, 2003 9:13 am
by qartis

Code: Select all

<script>
setTimeout(wait,5000);


function wait()&#123;
alert("Okay, now replace this alert() line with your delayed code");
&#125;
</script>
Put that in an .html file, and test it out.