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

  • Home
  • SEARCH
  • 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 8579505
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T20:37:15+00:00 2026-06-11T20:37:15+00:00

I try it with javascript and jquery but no idea how to do that.

  • 0

I try it with javascript and jquery but no idea how to do that. i wont to let the timer not begins on refreshing counting again. It´s same as an auction when he counting down 3,2 and on refreshing he don´t begins again it should continue count down where it last ended. And on other products it must count from 3 again. Have anyboy an idea?

Edit: because some users missunderstood what i am searching for.

my issue is that i don´t know how to save the time when someone refresh the page to continue to count it down. if someone refresh the site at 21sec and he or she have 30 secs to make there choice. and after refreshing the site, the counter will count at 21sec down and not started again by 30sec again.
no ajax.

When possible hardcoded.
And if not possible then the cookie variant.

  • 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-06-11T20:37:16+00:00Added an answer on June 11, 2026 at 8:37 pm

    It’s not Perfect but I designed this script to do a 30min countdown and then to change some text during the last few seconds. The only issue with it is that when it gets to 1:00 it starts at 30:60 and I haven’t figured out how to fix that yet. This may not work perfectly for what your looking for but it might put you on the right path.

    <script>
    //add leading zeros
    setInterval(function() {
    function addZero(i) {
        if (i < 10) {
            i = "0" + i;
        }
        return i;
    }
    var x = document.getElementById("timer");
    var d = new Date();
    var s = (d.getSeconds());
    var m = (d.getMinutes());
    var a = addZero(30 - m);
    var b = addZero(60 - m);
    var c = (60 - s);
    var z = "<span style='color:red;font-size:50px;'>" + "Break" + "</span>";
    var v = "<span style='color:black;font-size:24px;'>" + "Break" + "</span>";
    //Decide how much should be subtracted from the time
    if (m > 30) {
        y = b;
    }
    else if (m < 30) {
        y = a;
    }
    //elements for changing text
    if (y < 2 && c < 15) {
        q = z;
    }
    else {
        q = v;
    }
    
    var t = y + (":" + addZero(c) + " Till Station " + (q));
    x.innerHTML = t;
    }, 250);
    </script>
    
    
    <div align="center" id="timer" style='color:black;font-size:24px;' ></div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How do I force blurring, but without calling onBlur event in JavaScript/jQuery? I'll try
I try using evt.parent.attr(id) inside jsddm_close, but it doesn't work. <script type=text/javascript src=http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js></script> <script
I am coming from Java and try to learn Javascript right now. Doing that
When evaluating the value of myObject.myMember My guess is that javascript will try to
Try executing the following in JavaScript: parseInt('01'); //equals 1 parseInt('02'); //equals 2 parseInt('03'); //equals
I try to write a javascript Self-Executing Anonymous Function window.App = window.App || {}
I try to debug a javascript function called from Generate Thumbnails plugin in Wordpress.
I try to build a metro-style-app with Javascript and when I run the Windows
I try to add a class to a td-element using javascript with the internet
I try to us wp_enqueue_script to load my javascript, here is my code: <?php

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.