Ithuriel
03-02-2010, 11:16 PM
Morning all,
I've been using the Dynamic Countdown script, which i find awesome for what I need.
http://www.dynamicdrive.com/dynamicindex6/dhtmlcount.htm
There is one instance however where I have the countdown displaying in a div, and i need to reset/change to countdown time for that div.
e.g The page loads and the timer displays with the Countdown date of;
March 14, 2010 20:00:00
I then click a button and this time/date stamp needs to change to say;
May 16, 2010 20:00:00
the problem i have is that it now displays both cdtime functions in that one div tag. rotating between both timers.
Is there anyway i can 'get' the current function and change the variable? or can i kill the current timer and replace it with my new one.
Not heaps familiar with Javascript so not sure how to do this. With vbScript i would set the object to nothing and create a new one.
Any help would be greatly appreciated.
Cheers
I've been using the Dynamic Countdown script, which i find awesome for what I need.
http://www.dynamicdrive.com/dynamicindex6/dhtmlcount.htm
There is one instance however where I have the countdown displaying in a div, and i need to reset/change to countdown time for that div.
e.g The page loads and the timer displays with the Countdown date of;
March 14, 2010 20:00:00
I then click a button and this time/date stamp needs to change to say;
May 16, 2010 20:00:00
the problem i have is that it now displays both cdtime functions in that one div tag. rotating between both timers.
Is there anyway i can 'get' the current function and change the variable? or can i kill the current timer and replace it with my new one.
Not heaps familiar with Javascript so not sure how to do this. With vbScript i would set the object to nothing and create a new one.
Any help would be greatly appreciated.
Cheers