I Need Help Regarding a Download Page For Wordpress PHP

🅰🅳🅸🆃🆈🅰

Active member
Mar 20, 2020
199
122
43
पृथ्वीलोक :
Hello, how can i make a page like with waiting timer to show download links

androjunglevcom/file.php?id=5443&n=1
If you notice it has &n=1 like this n=2 etc..
Which will show another link with file.php page in between then

i am not able tell clearly but hope you will understood
 

Vikas6

Member
Banned User
May 22, 2022
66
65
18
Add this
<center> <button type="button" onclick="myFunction()" id="countdown" style="background-color: DodgerBlue; font-family: verdana; font-size: 20px; color: white; padding: 12px 30px; ">Go To Download</button></center> <div style="text-align: center;"> <a href="###" id="download_link" style="display: none;"><button style="background-color: DodgerBlue; border: none; color: white; padding: 12px 30px; cursor: pointer; font-size: 20px;" >Downlaod Link</button></a> <noscript>JavaScript needs to be enabled in order to be able to download.</noscript> <script type="application/javascript"> function myFunction(){ var message = "%d seconds before download link appears"; // seconds before download link becomes visible var count = 15; var countdown_element = document.getElementById("countdown"); var download_link = document.getElementById("download_link"); var timer = setInterval(function(){ // if countdown equals 0, the next condition will evaluate to false and the else-construct will be executed if (count) { // display text countdown_element.innerHTML = "You have to wait %d seconds.".replace("%d", count); // decrease counter count--; } else { // stop timer clearInterval(timer); // hide countdown countdown_element.style.display = "none"; // show download link download_link.style.display = ""; } }, 1000); } </script>

  1. Now, replace "###" with the download link in the code.
 
  • Like
Reactions: Auwal

🅰🅳🅸🆃🆈🅰

Active member
Mar 20, 2020
199
122
43
पृथ्वीलोक :
Add this
<center> <button type="button" onclick="myFunction()" id="countdown" style="background-color: DodgerBlue; font-family: verdana; font-size: 20px; color: white; padding: 12px 30px; ">Go To Download</button></center> <div style="text-align: center;"> <a href="###" id="download_link" style="display: none;"><button style="background-color: DodgerBlue; border: none; color: white; padding: 12px 30px; cursor: pointer; font-size: 20px;" >Downlaod Link</button></a> <noscript>JavaScript needs to be enabled in order to be able to download.</noscript> <script type="application/javascript"> function myFunction(){ var message = "%d seconds before download link appears"; // seconds before download link becomes visible var count = 15; var countdown_element = document.getElementById("countdown"); var download_link = document.getElementById("download_link"); var timer = setInterval(function(){ // if countdown equals 0, the next condition will evaluate to false and the else-construct will be executed if (count) { // display text countdown_element.innerHTML = "You have to wait %d seconds.".replace("%d", count); // decrease counter count--; } else { // stop timer clearInterval(timer); // hide countdown countdown_element.style.display = "none"; // show download link download_link.style.display = ""; } }, 1000); } </script>

  1. Now, replace "###" with the download link in the code.
Thanks but this is not what i asked
 

Auwal

Active member
May 16, 2020
432
64
28
Nigeria
ngbaze.com
Add this
<center> <button type="button" onclick="myFunction()" id="countdown" style="background-color: DodgerBlue; font-family: verdana; font-size: 20px; color: white; padding: 12px 30px; ">Go To Download</button></center> <div style="text-align: center;"> <a href="###" id="download_link" style="display: none;"><button style="background-color: DodgerBlue; border: none; color: white; padding: 12px 30px; cursor: pointer; font-size: 20px;" >Downlaod Link</button></a> <noscript>JavaScript needs to be enabled in order to be able to download.</noscript> <script type="application/javascript"> function myFunction(){ var message = "%d seconds before download link appears"; // seconds before download link becomes visible var count = 15; var countdown_element = document.getElementById("countdown"); var download_link = document.getElementById("download_link"); var timer = setInterval(function(){ // if countdown equals 0, the next condition will evaluate to false and the else-construct will be executed if (count) { // display text countdown_element.innerHTML = "You have to wait %d seconds.".replace("%d", count); // decrease counter count--; } else { // stop timer clearInterval(timer); // hide countdown countdown_element.style.display = "none"; // show download link download_link.style.display = ""; } }, 1000); } </script>

  1. Now, replace "###" with the download link in the code.
where can i add the code pls , explain more ?
 

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu