Add Timer or Countdown in blogger for downloading
If we are using wordpress then we have different types of plugins to for the countdown on the page of downloading.
But we are here to explain in the blogger, that how it will downloading countdown will be get added.
To add it on blogger posts, you have to also create a page
Follow the Below Steps:-
1. First write the post about the thing which you are
2. Then create a page and copy the code mentioned below and paste in the HTML section of blogger post.
________________________________________________________________________________
<br />
ADSENSE CODE - 1
<br>
<div dir="ltr" style="text-align: left;" trbidi="on">
<script>
var count = 15; // Number of remaining seconds.
var counter; // Handle for the countdown event.
function start() {
counter = setInterval(timer, 1000);
}
function timer() {
// Show the number of remaining seconds on the web page.
var output = document.getElementById("displaySeconds");
output.innerHTML = count;
// Decrease the remaining number of seconds by one.
count--;
// Check if the counter has reached zero.
if (count < 0) { // If the counter has reached zero...
// Stop the counter.
clearInterval(counter);
// Start the download.
window.location.href = "https://drive.google.com/file/d/1GUR6aWvf3KjtHLJBbJOCorwCF17tfD6T/view?usp=sharing";
return;
}
}
// Start the countdown timer when the page loads.
window.addEventListener("load", start, false);
</script>
<br />
Your download will begin in <span id="displaySeconds">15</span> seconds.<br />
<br />
ADSENSE CODE - 2
<br>
<a href="https://drive.google.com/file/d/1GUR6aWvf3KjtHLJBbJOCorwCF17tfD6T/view?usp=sharing">Click here if your download does not begin.</a></div>
Timer Code.html
Displaying Timer Code.html.
________________________________________________________________________________
This code is for direct downloading after countdown completed
https://drive.google.com/uc?export=download&id=1MZDjDS5LvDVT8_oQy59ciJIzgJa900an
________________________________________________________________________________
3. Now you can change the colours of it and also select the downloading link to get download afte the countdown completed.
This the way you can add countdown timer to your blogger.
To Download -- Click Here
No comments:
Post a Comment