Results 1 to 2 of 2

Thread: Modify Date and Time javascript

  1. #1
    Join Date
    Jun 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Modify Date and Time javascript

    1) Script Title: DD Date&Time

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...lcountdown.htm

    3) Describe problem:
    I wonder if anyone can please help me out to modify the output of this script? Can you set up the output to load up a new page after the countdown goal is met?

    Thank you!
    Last edited by kamanburger; 06-18-2011 at 07:39 PM.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    You would enter a callback function as the second parameter inside your initialization code that does this, for example:

    Code:
    function gotopage(){
    	if (this.timesup)
    		location="http://www.google.com"
    }
    
    var launchdate=new cdLocalTime("cdcontainer", "server-php", 0, "April 23, 2010 15:53:00", "debugmode")
    launchdate.displaycountdown("days", gotopage)
    DD Admin

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
  •