473,700 Members | 2,602 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Show countdown from 10 to 0 seconds

I have a newbie question (couldn't find the answer with google)
How to show countdown from 10 to 0 seconds.

Stephanie
Jul 27 '05 #1
31 14166
I have a newbie question (couldn't find the answer with google)
How to show countdown from 10 to 0 seconds.

Stephanie


Cannot really be done with PHP, try JavaScript.

Simon
Jul 27 '05 #2
> Cannot really be done with PHP, try JavaScript.
Bad luck, i try to avoid JavaScript. Some visitors disabled JavaScript.

Stephanie
Jul 27 '05 #3
Cannot really be done with PHP, try JavaScript.

Bad luck, i try to avoid JavaScript. Some visitors disabled JavaScript.

Stephanie


Who is it bad luck for?
PHP is _server side_ a countdown is _client side_.

Simon
Jul 27 '05 #4
Stephanie wrote:
Cannot really be done with PHP, try JavaScript.


Bad luck, i try to avoid JavaScript. Some visitors disabled JavaScript.

Stephanie


the number of people who know how to disable javascript is minute.

of the people who *do* know how to disable javascript, very few bother
to do so.

i imagine that those people who *both* know how to disable it and
*actually* disable it are probably going to manage to surf your site
without the help of a countdown ticker.
sadara
Jul 27 '05 #5
My oppinion is that the best way is Flash !!!
Just for the CountDown...
I don't think that someone will be afraid of flash !!!
Jul 27 '05 #6
> PHP is _server side_ a countdown is _client side_.

Why can't you countdown server sided ?

Stephanie
Jul 27 '05 #7
Stephanie wrote:
PHP is _server side_ a countdown is _client side_.


Why can't you countdown server sided ?


Your question is not clear. Do you want countdown to be shown in
browser (inputbox, div, etc)?? or You just want to countdown the
seconds (say 10 seconds of sleep)??

--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com

Jul 27 '05 #8
On Wed, 27 Jul 2005 15:22:52 +0200, Stephanie wrote:
PHP is _server side_ a countdown is _client side_.


Why can't you countdown server sided ?


You can, but the client won't see it. What do you need the countdown for,
anyway? If it's just for a more or less arbitrary delay, use an animated
gif and refresh the page using the 'meta refresh' header set at 10 sec.

I hate countdowns that don't do anything.

--
Firefox Browser - Rediscover the web - http://getffox.com/
Thunderbird E-mail and Newsgroups - http://gettbird.com/
Jul 27 '05 #9
JDS
On Wed, 27 Jul 2005 13:39:32 +0200, Sadara wrote:
of the people who *do* know how to disable javascript, very few bother to
do so.


Roughly 10% do, depending on where you get your numbers

--
JDS | je*****@example .invalid
| http://www.newtnotes.com
DJMBS | http://newtnotes.com/doctor-jeff-master-brainsurgeon/

Jul 27 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2681
by: Bonnett | last post by:
I have been creating a generic countdown timer (source code below), counting the seconds, minutes, hours and days till an event, but I have having trouble with it finding out how many hours are left. When i get it to display a complete countdown (days hours mins seconds left) it is one hour short when counting dates that fall in the following time brackets: 2004,2,29 -> 2004,9,31 2005,2,28 -> 2005,9,30 2006,2,27 -> 2006,9,29 etc..
8
3765
by: Michael | last post by:
I have this script that works the way I want except for one thing... Once it hits zero it starts to count up and looks like this: -1:0-1:0-1:0-18 with the last number counting up. Can anyone help me find a way to stop it at zero? Thank you, Mike
1
29569
by: Will | last post by:
I have form showing instructions and logging actions and I would like the form to show a count down timer for a certain period of time. E.g. 30 secs, going down to 0 and then displaying the action. I want the user to be able to see the seconds counting down. Can anyone help me? thanks
3
2989
by: james | last post by:
I am working with a very old database system (building an import/export routine) that stores the time in seconds. I have been able to convert the seconds to correct time (thanks to a lot of help in this group). But, I need to be able to write back the time of day to the db in seconds. Example: 01:00:00 PM should be 46800 seconds. I can get it to work in an odd sort of way like this: Private Sub Button2_Click(ByVal sender As...
4
4063
by: Dr John Stockton | last post by:
I'm starting a new thread, for clarity. I'm assuming that it's ECMA-262 3rd Edn (1999) that we should be using for Web pages; that 4th Edn (what's its present status? is it available?) is too advanced for compatibility with many browsers in present-day use; that Web authors should be aware of what JScript and ..NET may do, but cannot rely on it; and that MS documents describe the latest MS code as distinct from agreed standards.
0
8643
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9210
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
7805
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6558
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5900
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4401
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4654
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2389
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2025
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.