This represents in asp classic the numbers of minutes. For the sake of this example, let use 60 minutes.
<%-DateDiff("n", starttime, now())%>
In asp, I can use this to represent the 60 minutes
<%countdown = -DateDiff("n", starttime, now())%>
…and in the JS I can replace the time like this…
<%=countdown%>
So I am trying to find a countdown timer that I can place this code: <%=countdown%> and have it countdown, 60,59,58,57 etc,
The countdown is also fine in minutes and seconds with the wording “remaining” after the countdown number. And it would be nice to say “finished” once it reaches zero.
Sorry for the delayed response. I didn’t get an email on this one.
You are CORRECT! It does work - I had a typo and didn’t catch it.
Now lastly, I am trying to eliminate (because it won’t be used) the Days and Hours to the display. I tried removing that from the div and it then shows no numbers at all and tried removing from the JS and that doesn’t work. What do I need to change to make that happen.
Well, I appreciate you trying it. I tried it a couple of times and it recycled, however, I will check again. I am using EDGE for my trials. I will also use your code and response to that also.
Just getting back to this, and thought of what the problem could be, and fixed and your code is just fine.
The problem was that I was using my localhost which conflicted with the actual time. I did a response.write countdown (asp code) and the minutes were way off. So I upload to actual server for a test and all is good. I know that when @rpg_digital and you said it tested good then the mistake had to be on my end! Actually nothing to fix other than upload to server!
It’s a nice looking timer and as mentioned before, is it easy to code were once it goes zero, then to have the minutes/seconds disappear and provide a link?
I am trying to figure out why the earlier versions do not have a shadow effect vs the latest version doesn’t. I prefer no shadow - what do I need to do to change that?