Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4022508
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T10:29:02+00:00 2026-05-20T10:29:02+00:00

hey, how can I have my download link hidden, and make a count down

  • 0

hey, how can I have my download link hidden, and make a count down type thing. Maybe have it count down from 10 and once it’s done that have the download link appear, it would be best to do it in js right?

does anyone know how to do this? 😀

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T10:29:03+00:00Added an answer on May 20, 2026 at 10:29 am

    You can use setInterval for this. setInterval behaves like a timer, where you can run a certain function periodically. Something like this should do the work(untested):

    $(".link").hide();
    
    var iteration = 0;
    var timer = setInterval(function() {
        if(iteration++ >= 10) {
            clearTimeout(timer);
            $(".link").show();
            $(".counter").hide();
        }
    
        $(".counter").text(10 - iteration);
    }, 1000);
    

    This will initially hide the download link and run a function every second which counts down from 10. When we reaced ten, we hide the counter and show the link. ClearTimeout is used so that we don’t count after we reached ten. Easy as dell.

    Edit: As mentioned in the comments, this function is using jQuery to find the elements.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hey guys, this is simple but I can't make it workn... blah! I have
Hey! This is what I have already done so far which works great: Download
hey, well I have this form <form method=POST action=''> <input type=hidden name=op value=download1> <input
hey, hi i want put limit on object creation means a class can have
Hey guys how can I make an app keep playing an mp3 after pressed
Hey, I can't seem to access the returned value from a method I called
Hey everyone, I have written a script that downloads a zip file from a
Hey folks, I have a question which feels stupid but I can't quite say
Hey i can't seem to be able to solve this, i have this query
Hey guys I have enabled APC on my VPS but now I can't access

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.