Quick Search:
 
 JavaScript: Countdown to link enable Jump to:  
Category: >> JavaScript >> Countdown to link enable  

<< lastnext >>

Snippet Name: Countdown to link enable

Description: Enable a link after a set period of time.

Comment: (none)

Language: JAVASCRIPT
Highlight Mode: JAVASCRIPT
Last Modified: February 27th, 2009

<script language="Javascript">
x116=30;
FUNCTION countdown() 
{
 IF ((0 <= 100) || (0 > 0))
 {
  x116--;
  IF(x116 == 0)
  {
   document.getElementById("dl").innerHTML = '<a href="http://www.somedomain.com/demo/download2.php">Download</a>';
  }
  IF(x116 > 0)
  {
   document.getElementById("dl").innerHTML = 'Please wait <b>'+x116+'</b> seconds..';
   setTimeout('countdown()',1000);
  }
 }
}
countdown();
</script>


 
   Home |    Search |    Code Library |    Sponsors |    Privacy |    Terms of Use |    Contact Us © 2003 - 2024 psoug.org