How to add Download timer with download button on Blogger

How to add Download button with timer on Blogger
So friends, before knowing about Add Download Timer in Blogger, we get to know about this Download Timer.

So let me tell you that this is a process. There is a countdown of a certain time before downloading anything. This is what we call Download Timer.

Free Countdown Widget for Blogger

If you do blogging and your blog is on Blogger platform. Also, your blog is a downloading blog. So you must have thought that at some time you should earn some good amount too.

So for this bloggers use Download Timer. Using this, people will stay on your blog for the time you have decided. So that your Bounce Rate is also under control.

PREVIEW

Countdown Timer HTML Script

So friends, let me tell you that this download Timer's feature is made by Coding. HTML and JavaScript have been used in this feature.

If you see any tools or Widget related to online web development. Coding has great importance in everything. Nowadays people of Coding Cod are easily earning a lot even sitting at home.

Download Timer in Blogger & WordPress
So even before that, I wrote an article on this Download Timer. But in that, I had told about such a script that used to be redirected as soon as the timer was over.

But today I am going to tell you about a new script. After the Z timer runs out, you Download Button Will appear After that you will download it only after clicking on it.

The script that I had told earlier, worked only in Blogger's blog. But you can easily use this script in the WordPress website too.

How To Use Download Timer

So below I have explained all those steps in detail. With the help of which you can easily use this Download Timer Widget. So follow the steps below.


  1.  First of all, you will get this Download Timer's Script. Copy it.
    <div dir="ltr" style="text-align: left;" trbidi="on">
    <body>
    <center>
    <span id="countdown">You have to wait 15 seconds.</span></center>


    <div style="text-align: center;">
    <b>Download Timer</b>

    <a href="http://sayemtutorial.blogspot.com" id="download_link" style="display: none;"><img border="0" data-original-height="91" data-original-width="500" height="51" img="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjsLmGCGAU6tgKjhysVfee7W2OqCZhdh8DoGa84wkwSxDQTIu783b2wSrhSfmxSerOgq0svlo6Oxt8b1XmMShbRYVvqgkw9-r2cj1vPU6pazxoTweB9G-Uq1s1mbQrXsEraGB8XxsJxqsY/s200/Download-Buttons-transparent-PNG-images-715x715.png" /></a>
    <noscript>JavaScript needs to be enabled in order to be able to download.</noscript>
    <script type="application/javascript">
    (function(){
    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>
    </div>
    </body></div>
  2. Now you have to paste this code wherever you want to use this widget.
  3. Now you have to paste your download link in this code at the instance of http://sayemtutorial.blogspot.com.
  4. And if you want to change the time, then you can easily change it. And save.
  5. Now your work is done successfully.

Post a Comment

Post a Comment (0)

Previous Post Next Post