Results 1 to 2 of 2

Thread: Universal Countdown after the event time

  1. #1
    Join Date
    Feb 2008
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Universal Countdown after the event time

    1) Script Title:
    Universal Countdown
    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...lcountdown.htm
    3) Describe problem:

    I have this script counting down and then at the end fwds to another URL by way to window.location="newpage.html";
    I am trying to add an if else to this script so that once the event date passes the script automatically:

    example:
    if (time now is past the script end time)
    {window.location="newpage.html";}

    else{
    var launchdate=new cdLocalTime("cdcontainer", "server-asp", 120, "February 29, 2008 15:51:50")
    launchdate.displaycountdown("days", formatresults2)
    }


    how can I use the server time that is used in the main script in the first if () statement?

    if (now() = launchdate)?

    or can I use
    if (this.timesup==true)
    ?

    thanks
    Jon

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    I hink that you would need to do it here:
    Code:
    }
    else{ //else if target date/time met
    var displaystring="Launch time!"
    }
    Jeremy | jfein.net

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
  •