Web Hosting Talk







View Full Version : Help with something


Nicarlo
03-11-2006, 06:53 PM
Hi there,

im working on a php code and im trying to figure out how to do something.

I want to empliment a sort of countdown kinda like rapidshare where after a certain amount of seconds, a special text or link is revealed. i believe this could be done with java script but its not an area where im to strong in and wanted to know if someone could help me out with it.

Thank you!
Your help is much apreciated.

zoid
03-11-2006, 06:59 PM
Use setTimeout() (http://www.mozilla.org/docs/dom/domref/dom_window_ref115.html) to have a specific code run after a certain period of milliseconds.

The following code will pop up a message after 5 seconds.
window.setTimeout("alert('After 5 seconds')", 5000);

Nicarlo
03-11-2006, 07:30 PM
thank you for this.