Show countdown from 10 to 0 seconds

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Stephanie

    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


  • Simon

    #2
    Re: Show countdown from 10 to 0 seconds

    [color=blue]
    >I have a newbie question (couldn't find the answer with google)
    > How to show countdown from 10 to 0 seconds.
    >
    > Stephanie[/color]

    Cannot really be done with PHP, try JavaScript.

    Simon


    Comment

    • Stephanie

      #3
      Re: Show countdown from 10 to 0 seconds

      > Cannot really be done with PHP, try JavaScript.
      Bad luck, i try to avoid JavaScript. Some visitors disabled JavaScript.

      Stephanie


      Comment

      • Simon

        #4
        Re: Show countdown from 10 to 0 seconds

        [color=blue][color=green]
        >> Cannot really be done with PHP, try JavaScript.[/color]
        > Bad luck, i try to avoid JavaScript. Some visitors disabled JavaScript.
        >
        > Stephanie[/color]

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

        Simon


        Comment

        • Sadara

          #5
          Re: Show countdown from 10 to 0 seconds

          Stephanie wrote:[color=blue][color=green]
          >>Cannot really be done with PHP, try JavaScript.[/color]
          >
          > Bad luck, i try to avoid JavaScript. Some visitors disabled JavaScript.
          >
          > Stephanie[/color]

          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

          Comment

          • Angelos

            #6
            Re: Show countdown from 10 to 0 seconds

            My oppinion is that the best way is Flash !!!
            Just for the CountDown...
            I don't think that someone will be afraid of flash !!!


            Comment

            • Stephanie

              #7
              Re: Show countdown from 10 to 0 seconds

              > PHP is _server side_ a countdown is _client side_.

              Why can't you countdown server sided ?

              Stephanie


              Comment

              • R. Rajesh Jeba Anbiah

                #8
                Re: Show countdown from 10 to 0 seconds

                Stephanie wrote:[color=blue][color=green]
                > > PHP is _server side_ a countdown is _client side_.[/color]
                >
                > Why can't you countdown server sided ?[/color]

                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

                Comment

                • Ewoud Dronkert

                  #9
                  Re: Show countdown from 10 to 0 seconds

                  On Wed, 27 Jul 2005 15:22:52 +0200, Stephanie wrote:[color=blue][color=green]
                  >> PHP is _server side_ a countdown is _client side_.[/color]
                  >
                  > Why can't you countdown server sided ?[/color]

                  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/

                  Comment

                  • JDS

                    #10
                    Re: Show countdown from 10 to 0 seconds

                    On Wed, 27 Jul 2005 13:39:32 +0200, Sadara wrote:
                    [color=blue]
                    > of the people who *do* know how to disable javascript, very few bother to
                    > do so.[/color]

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

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

                    Comment

                    • JDS

                      #11
                      Re: Show countdown from 10 to 0 seconds

                      On Wed, 27 Jul 2005 12:08:42 +0100, Simon wrote:
                      [color=blue]
                      >[color=green]
                      >>I have a newbie question (couldn't find the answer with google)
                      >> How to show countdown from 10 to 0 seconds.
                      >>
                      >> Stephanie[/color]
                      >
                      > Cannot really be done with PHP, try JavaScript.
                      >
                      > Simon[/color]

                      Or you can META Refresh at one second intervals, loading the next
                      incremented number page each time.

                      Or you could use an animated GIF

                      Or you could use Flash (as another poster suggested).

                      Or possibly a Java Applet.

                      I vote for JavaScript, though.

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

                      Comment

                      • JDS

                        #12
                        Re: Show countdown from 10 to 0 seconds

                        On Wed, 27 Jul 2005 13:00:55 +0200, Stephanie wrote:
                        [color=blue]
                        > I have a newbie question (couldn't find the answer with google) How to
                        > show countdown from 10 to 0 seconds.
                        >
                        > Stephanie[/color]


                        Your question is too unspecific/ambiguous.

                        What are you trying to do, exactly?

                        Why do you want to do it?

                        Why do you think it would be PHP-related, this question?

                        More details, please...

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

                        Comment

                        • Stephanie

                          #13
                          Re: Show countdown from 10 to 0 seconds

                          I have an errorpage that redirects after 10 seconds. So i'd like to show how
                          many seconds before redirection.
                          Within that time a visitor can chose to send an email to the webmaster.
                          So it's not entirely necessary, but it's a service :-))
                          So i need some advice to show (not how to redirect within 10 seconds) the
                          remaining seconds within my text.(not a textbox or somthing)
                          (Sorry, this page was not found. In 10 seconds, you will be redirected to
                          our main page.)

                          Stephanie


                          Comment

                          • R. Rajesh Jeba Anbiah

                            #14
                            Re: Show countdown from 10 to 0 seconds

                            Stephanie wrote:[color=blue]
                            > I have an errorpage that redirects after 10 seconds. So i'd like to show how
                            > many seconds before redirection.
                            > Within that time a visitor can chose to send an email to the webmaster.
                            > So it's not entirely necessary, but it's a service :-))
                            > So i need some advice to show (not how to redirect within 10 seconds) the
                            > remaining seconds within my text.(not a textbox or somthing)
                            > (Sorry, this page was not found. In 10 seconds, you will be redirected to
                            > our main page.)[/color]

                            Then.. probably, you may have to try something like this
                            <http://in2.php.net/flush#52147> with META refresh.

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

                            Comment

                            • juglesh

                              #15
                              Re: Show countdown from 10 to 0 seconds


                              "Stephanie" <Stephanie@nosp am.1234> wrote in message
                              news:bd688$42e7 91eb$513b49d4$1 4069@news.versa tel.nl...[color=blue]
                              >I have an errorpage that redirects after 10 seconds. So i'd like to show
                              >how many seconds before redirection.
                              > Within that time a visitor can chose to send an email to the webmaster.
                              > So it's not entirely necessary, but it's a service :-))
                              > So i need some advice to show (not how to redirect within 10 seconds) the
                              > remaining seconds within my text.(not a textbox or somthing)
                              > (Sorry, this page was not found. In 10 seconds, you will be redirected to
                              > our main page.)[/color]

                              Ah, yes, this is a javascript question. To make it usable for those with js
                              turned off, just provide a regular link under your timer thing. "if you are
                              not automagically redirected, or dont want to wait, click here" You should
                              do that anyway, so I dont have to wait.

                              --
                              juglesh


                              Comment

                              Working...