Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Flash countdown timer?

  • 06-06-2006 11:27am
    #1
    Registered Users, Registered Users 2 Posts: 771 ✭✭✭


    Hi,

    I have a flash countdown timer that counts
    down minutes and seconds to the next hour.
    I got from flashkit and was able to modify it
    enough (eg different background)

    but i really need another one to count down from
    hours and minutes until midnight (no seconds)

    anyone know how to do this or have a similar script
    lying around!? pretty please


Comments

  • Closed Accounts Posts: 266 ✭✭decimal


    http://www.kirupa.com/developer/mx/countdown.htm

    This sounds similar to something you need, the code is explained in detail, so perhaps you can edit it to work your own way.


  • Registered Users, Registered Users 2 Posts: 3,594 ✭✭✭forbairt




    Hopefully you can work it out from here :)

    You'll end up with something like ...

    now = new Date();

    from this .. get the day the month and the year ...

    feed these into a new date object

    midnight = new Date(now.getYear(),now.getMonth(),now.getDate()+1,0,0);

    midnight.UTC - now.UTC = number of seconds ...

    Please note .. thats very rough but you should be able to figure it out :)


Advertisement