PDA

View Full Version : Modify Date and Time javascript



kamanburger
06-18-2011, 07:24 PM
1) Script Title: DD Date&Time

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex6/universalcountdown.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!

ddadmin
06-19-2011, 07:53 AM
You would enter a callback function as the second parameter inside your initialization code that does this, for example:


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)