Welcome, Guest. Please login or register.

ShoutBox!

 

Skhilled

2024-08-09, 18:19:29
Awww! Poor thing! LOL
 

Ken

2024-08-09, 09:20:52
 

Skhilled

2024-07-06, 10:33:18
 :D
 

Ken

2024-07-06, 06:40:47
Happy Saturday after the 4th of July!
 :fireworks:
 

Skhilled

2024-07-04, 20:27:02
Happy Day Off From Work!  :D
 

Ken

2024-06-25, 06:23:12
84... who knew?  laughing7
...2013 was my *magic* year
 

Skhilled

2024-06-14, 22:09:12
I hope so! LOL
 

Ken

2024-06-14, 21:41:30
My B-Day is forthcoming and maybe it will be far enough along so that I can be a regular Dancing Fool for that day!!! :banana: :2funny:
 

Ken

2024-06-14, 21:38:38
Happy Friday everyone! I'm  SOOO glad to see Friday and not just because it's the weekend, but because it marks one more day in the recovery of my foot!  laughing7

Scrubmeister

2024-04-19, 10:32:40
Good to see the site back faster than ever. :)

Recent Topics

TP Articles


Search in titles
Search in article texts

Author Topic: [code] Christmas Countdown Block  (Read 5116 times)

0 Members and 1 Guest are viewing this topic.

Offline Ken (OP)

  • Vietnam Era Veteran
  • Administrator
  • *
  • Posts: 11943
  • Gender: Male
  • View Gallery
[code] Christmas Countdown Block
« on: December 04, 2017, 07:47:58 PM »
Got a coding issue with the "Christmas Countdown" block. This code has worked in years past, but not this time... It shows the text, but not the countdown clock.

Ant ideas on the code mix up?

Quote
<div align="center"><span id="cntdwn" style="background-color:palegreen; color:navy">Lets Count Down to Christmas 2017 Everyone!!!</span>&nbsp;

</div>
<div align="center"><span id="cntdwn" style="background-color:palegreen; color:navy"></span>

</div>
<script language="JavaScript">TargetDate = "12/25/2017 00:01 AM";
BackColor = "palegreen";
ForeColor = "navy";
CountActive = true;
CountStepper = -1;
LeadingZero = true;
DisplayFormat = "%%D%% Days, %%H%% Hours, %%M%% Minutes, %%S%% Seconds.";
FinishMessage = "Merry Christmas 2017 Everyone!!!";
</script>
<script language="JavaScript" src="http://scripts.hashemian.com/js/countdown.js"></script><span id="cntdwn" style="background-color:palegreen; color:navy"></span><span id="cntdwn" style="background-color:palegreen; color:navy"></span><span id="cntdwn" style="background-color:palegreen; color:navy"></span><span id="cntdwn" style="background-color:palegreen; color:navy"></span><span id="cntdwn" style="background-color:palegreen; color:navy"></span><span id="cntdwn" style="background-color:palegreen; color:navy"></span><span id="cntdwn" style="background-color:palegreen; color:navy"></span><span id="cntdwn" style="background-color:palegreen; color:navy"></span><span id="cntdwn" style="background-color:palegreen; color:navy"></span><span id="cntdwn" style="background-color:palegreen; color:navy"></span><span id="cntdwn" style="background-color:palegreen; color:navy"></span><span id="cntdwn" style="background-color:palegreen; color:navy"></span><span id="cntdwn" style="background-color:palegreen; color:navy"></span><span id="cntdwn" style="background-color:palegreen; color:navy"></span><span id="cntdwn" style="background-color:palegreen; color:navy"></span><span id="cntdwn" style="background-color:palegreen; color:navy"></span><span id="cntdwn" style="background-color:palegreen; color:navy"></span><span id="cntdwn" style="background-color:palegreen; color:navy"></span>
"Not all who wander are lost."-Tolkien
Yesterday When I was Young.

Offline Skhilled

  • Administrator
  • *
  • Posts: 9429
  • Gender: Male
  • All of my passwords are protected by amnesia...
  • View Gallery
    • Buildz Hosting
Re: [code] Christmas Countdown Block
« Reply #1 on: December 05, 2017, 09:03:53 AM »
I can only assume that there's a TP or SMF issue due to upgrades. I just checked and it does work here:

https://www.hashemian.com/tools/javascript-countdown.htm

Offline Ken (OP)

  • Vietnam Era Veteran
  • Administrator
  • *
  • Posts: 11943
  • Gender: Male
  • View Gallery
Re: [code] Christmas Countdown Block
« Reply #2 on: December 05, 2017, 11:14:05 AM »
That worked! Thanks Steve!  :thumbup:
"Not all who wander are lost."-Tolkien
Yesterday When I was Young.

Offline Skhilled

  • Administrator
  • *
  • Posts: 9429
  • Gender: Male
  • All of my passwords are protected by amnesia...
  • View Gallery
    • Buildz Hosting
Re: [code] Christmas Countdown Block
« Reply #3 on: December 05, 2017, 11:20:07 AM »
So, the code was different, I guess?

Offline Ken (OP)

  • Vietnam Era Veteran
  • Administrator
  • *
  • Posts: 11943
  • Gender: Male
  • View Gallery
Re: [code] Christmas Countdown Block
« Reply #4 on: December 05, 2017, 11:26:27 AM »
Not really sure if it was different... I didn't compare the two, just made a new block using the code that you linked to.
"Not all who wander are lost."-Tolkien
Yesterday When I was Young.

Offline Skhilled

  • Administrator
  • *
  • Posts: 9429
  • Gender: Male
  • All of my passwords are protected by amnesia...
  • View Gallery
    • Buildz Hosting
Re: [code] Christmas Countdown Block
« Reply #5 on: December 05, 2017, 11:30:28 AM »
I would have played with it myself but almost burn't my dinner I was making while searching and gave up for the moment. LOL

Offline Ken (OP)

  • Vietnam Era Veteran
  • Administrator
  • *
  • Posts: 11943
  • Gender: Male
  • View Gallery
Re: [code] Christmas Countdown Block
« Reply #6 on: December 05, 2017, 12:21:12 PM »
 :opps:
Sorry about your dinner.  :-[
"Not all who wander are lost."-Tolkien
Yesterday When I was Young.

Offline Mick

Re: [code] Christmas Countdown Block
« Reply #7 on: December 05, 2017, 04:42:11 PM »
Not sure why it would stop working tbh.  I try it out.

Edit: Tried it and it works fine on my test site. TP 1.3R and SMF 2.0.15
« Last Edit: December 05, 2017, 04:58:35 PM by Mick »
Tinyportal.net Running SMF 2.1.4 / Tinyportal 3.0.0
Camera Craniums Running SMF 2.1.4 / Tinyportal 3.0.0, bridged with Coppermine 1.6.25
Guitarist Guild Running SMF 2.1.4 / Tinyportal 3.0.0
The Garden Machinery Forum Running SMF 2.1.4 / Tinyportal 3.0.0
YouTube

Offline Ken (OP)

  • Vietnam Era Veteran
  • Administrator
  • *
  • Posts: 11943
  • Gender: Male
  • View Gallery
Re: [code] Christmas Countdown Block
« Reply #8 on: December 05, 2017, 06:45:34 PM »
Thanks for checking the code Mick.  :thumbup:

Strange that it won't work here.
"Not all who wander are lost."-Tolkien
Yesterday When I was Young.