Need help with a Countdown Script, placed in a custum module |
Need help with a Countdown Script, placed in a custum module |
![]()
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? |
|
|
![]() |
![]()
Post
#2
|
|
Newbie ![]() Group: Member Posts: 4 Joined: Jul 2004 Member No: 26,760 ![]() |
never mind. I think I have got it figured out now. at least to where it is functional. probably isn't super effecient though
|
|
|
![]()
Post
#3
|
|
![]() . ![]() ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 1,488 Joined: Feb 2004 Member No: 3,625 ![]() |
If you say so.
Topic Closed |
|
|
![]() ![]() |