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 5989999
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T23:10:52+00:00 2026-05-22T23:10:52+00:00

I use the following example Redirect to redirect to a page. What i need

  • 0

I use the following example Redirect to redirect to a page. What i need is inside the image i would like to have a label or some text which should show count down from 30(secs) to 0(secs). I need javascript for this requirement.

Any help is appreciated

  • 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-22T23:10:53+00:00Added an answer on May 22, 2026 at 11:10 pm

    Hi include this before your existing DIV

    <div id="myCounter">
    </div>
    

    Write the following Script

    <script type="text/javascript">
    
            var milisec = 0
            var seconds = 30
            document.getElementById("myCounter").innerHTML = '30';
    
            function display() {
                if (milisec <= 0) {
                    milisec = 9
                    seconds -= 1
                }
                if (seconds <= -1) {
                    milisec = 0
                    seconds += 1
                }
                else
                    milisec -= 1
                document.getElementById("myCounter").innerHTML = seconds;
                setTimeout("display()", 100)
            }
            display() 
    
        </script>
    

    Adjust your DIV as per your need in the design by setting the position to absolute

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

Sidebar

Related Questions

In the following example, I tried to use uninterpreted Boolean function like (declare-const p
Please, how can I use redirect each of the following (using htaccess): http://www.example.com/jane-doe-online-5026?comments=true http://www.example.com/jane-doe-online-5026?postcomment=true
Trying to use the following demo example, using the 80px x 80px snap to
for example i use following command to find a record SELECT `users`.`mail` FROM `users`
In the following example, MySQL fails to use to find a ref for the
I want to use rb_require with rb_protect, as in the following example: int error;
I'm following an example on how to use require.js and backbone.js . In the
I use the following function to rename thumbnails. For example, if I upload a
Take the following article for example: http://weblogs.asp.net/psteele/archive/2009/11/23/use-dependency-injection-to-simplify-application-settings.aspx?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+dotnetmvp+%28Patrick+Steele%27s+.NET+Blog%29 I don't see what benefit there is
Using the following code: use LWP::Simple; my $url= http://example.com; my $html= get $url; I

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.