SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: Timer/Countdown

  1. #1
    SitePoint Member
    Join Date
    Mar 2005
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Timer/Countdown

    I would like a counter/timer that will show in textboxes the time left to Saturday 07:00. When it reaches zero it should reset and calculate the time until the next Saturday 07:00, 4 weeks ahead...
    Ex. next saturday is 19.3, when it resets it should set the timer to calculate the time to 16.4. 07:00, and when it resets again it should calculate the time to 14.4. 07:00. I hope you understand.

  2. #2
    SitePoint Enthusiast
    Join Date
    Mar 2005
    Location
    New Jersey
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Use a date object... here is a link to a quick reference of the date object...
    http://www.devguru.com/Technologies/...kref/date.html

    you will have to find out if "today" is one of your saturdays and if it is reset the counter to the next one...otherwise find the difference between "today" and the next "special" saturday and use that as your countdown...

    ~Mr_Bonez


Bookmarks

Posting Permissions

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