This countdown script uses document.write to display the output, while the Current Status module uses insertAdjacentHTML to display the output.
And actually I would like to countdown more than just one date, so ideally I would like to do the countdown calc, and store the result in a temp var, then display all of them. something like:
CODE
<!-- begin code provided by createblog.com -->
sub.insertAdjacentHTML ('beforeBegin', ..... + TitleContent + ModuleContent + Event1 +'<br>' + Event2 .....(and so on) );
<!-- end code provided by createblog.com -->
sub.insertAdjacentHTML ('beforeBegin', ..... + TitleContent + ModuleContent + Event1 +'<br>' + Event2 .....(and so on) );
<!-- end code provided by createblog.com -->
so I guess what I need is to store the result of the countdown in a string(?) instead of using document.write function. And I guess I need to convert the integer value of the number of days left to a string value(?) how is that done?