CoderZone.org

Category: >> JavaScript >> Timed link enabler Bookmark and Share

<< lastnext >>

Snippet Name: Timed link enabler

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

Also see:
» Countdown to Enable a Download Link
» INDEXES: ENABLE (function-based in...

Comment: (none)

Author: CoderZone
Language: JAVASCRIPT
Highlight Mode: JAVASCRIPT
Last Modified: December 09th, 2010

<script language="Javascript">
x116=30;
function count_down() 
{
 if ((0 <= 100) || (0 > 0))
 {
  xtime--;
  if(xtime== 0)
  {
   document.getElementById("hider").innerHTML = '<a href="http://www.somedomain.com/demo/download.php">Download Here</a>';
  }
  if(xtime> 0)
  {
   document.getElementById("hider").innerHTML = 'Please wait for <b>'+xtime+'</b> more seconds...';
   setTimeout('count_down()',500);
  }
 }
}
countdown();
</script>
 
There haven't been any comments added for this snippet yet. You may add one if you like.  Add a comment 
© coderzone.org | users online: 6