Log In · Register

 
Need help with a Countdown Script, placed in a custum module
esch
post Jul 24 2004, 04:02 AM
Post #1


Newbie
*

Group: Member
Posts: 4
Joined: Jul 2004
Member No: 26,760



I am currently using this Birthday Countdown Script and I want to place the output in a custum module. I am currently using the website stats section of this Current Status Script as the basis for my module. Instead of showing my status, I want it to show how many days left until an event.

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 -->


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?
 

Posts in this topic
esch   Need help with a Countdown Script   Jul 24 2004, 04:02 AM
esch   never mind. I think I have got it figured out now...   Jul 28 2004, 05:34 PM
DrNick311   If you say so. Topic Closed   Jul 28 2004, 05:41 PM


Closed TopicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members: