www.webdeveloper.com
Results 1 to 5 of 5

Thread: Javascript Countdown box, active for all users.

  1. #1
    Join Date
    Feb 2013
    Posts
    5

    Question Javascript Countdown box, active for all users.

    Hi Guys

    Objective: A countdown box, with a Start button, that any user on the webpage can start. The countdown should then appear so all users are able to see countdown, when countdown reaches 0, it should display message ex. "Lets Drink, Cheers" for 5-10 seconds, then the start button should appear again, so that another user can activate it.

    I have found this : http://veryuseful.info/test/timerreset/ which shows a "javascript" that has the client / server time sync functionality, that is needed for clients to see when countdown is active.

    Since i cannot get soucecode for this, and my programming skills are still on "Copy/Paste/Edit" level, I hope someone could help me get started.


    *As a feature it would be nice that the start button went away, and a join in button appeared, and a counter to show how many has joined the countdown.


    Hope someone can help me, or maybe link me some similar project, since i cannot seems to find any.

    Regards
    René

  2. #2
    Join Date
    Dec 2005
    Location
    FL
    Posts
    7,364
    not possible with JS alone as it is a client-side language.
    you will need to have access to a server-side language like PHP or PERL

  3. #3
    Join Date
    Feb 2013
    Posts
    5
    That is also what i have found out, But i have tried to search the last couple of weeks after such a function, being either JS / PHP / cgiPERL, then i found the link i sent and i can also see him using php in his script.

    Any help would be appreciated.

    //René

  4. #4
    Join Date
    Dec 2005
    Location
    FL
    Posts
    7,364
    Try posting your problem to the server-side forums.
    See about 1/2 way down on: http://www.webdeveloper.com/forum/forum.php

  5. #5
    Join Date
    Feb 2013
    Posts
    5

    Thanks

    Thanks I will try that.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles