Last updated on February 26th, 2015 at 02:09 am
This script can be used as a countdown timer before displaying a download link or any other hyperlink on your webpage. This is very basic script but you can make it more powerful by implementing, Get IP Address And Generate Time Limited Download Link Using PHP along with this.
This code is highly customizable and you can add dynamically the time duration and also the hyperlink which you need the webpage to display after x minutes or seconds.
The initial part of the script has couple of variables where you can set the time required for the download link to appear.
Here you are free to declare the minutes from 0 to 59 and seconds from 0 to 60.
var minutes =0; var seconds=60;
Now the next part is declaring the URL and the Hyperlink name
url='http://mistonline.in'; LINK_NAME='Mistonline.in Website'
The variable URL can have the hyperlink that you need to add and the LINK_NAME variable will be the name of the hyperlink.
Please leave the rest of the script as it is and you are done.
Here is the complete script
Please find the demo below.