Welcome, Guest. Please login or register.

ShoutBox!

 

Skhilled

2020 Jan 26 16:36:14
You're also getting a lot of errors from the blog. I've deleted the old ones.
 

Skhilled

2020 Jan 26 16:28:13
May be your net connection.
 

Ken

2020 Jan 26 11:07:23
Doing a 'hard' refresh gives this, "Page created in 0.107 seconds with 38 queries."... don't know if that's actually faster, but it seems to be so.  :thumbup:
 

Skhilled

2020 Jan 26 09:15:26
LOL...been too busy to play. :( But the site should load much faster. ;)
 

Ken

2020 Jan 24 07:02:38
Yes... it's that day again!  laughing7

TGIF
 

Ken

2020 Jan 23 05:47:57
FRIDAY!!! Did you say "It's FRIDAY"?  :banana:

Oh, OK, it's only Thursday.  :-[
 

Skhilled

2020 Jan 22 10:37:36
LOL
 

Ken

2020 Jan 22 10:22:27
No puppies, no camels... just a hump.  laughing7
 

Skhilled

2020 Jan 11 08:09:03
Dogs are lucky, every day they can get to hump something! LOL

Recent Topics

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

0 Members and 1 Guest are viewing this topic.

Offline Ken (OP)

  • Vietnam Era Veteran
  • Administrator
  • *
  • Posts: 8673
  • 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>
" If everything seems under control, you’re not going fast enough." - Mario Andretti
Yesterday When I was Young.

Offline Skhilled

  • Administrator
  • *
  • Posts: 5916
  • Gender: Male
  • Once you stop trying to learn, you stop living!
  • 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: 8673
  • Gender: Male
  • View Gallery
Re: [code] Christmas Countdown Block
« Reply #2 on: December 05, 2017, 11:14:05 AM »
That worked! Thanks Steve!  :thumbup:
" If everything seems under control, you’re not going fast enough." - Mario Andretti
Yesterday When I was Young.

Offline Skhilled

  • Administrator
  • *
  • Posts: 5916
  • Gender: Male
  • Once you stop trying to learn, you stop living!
  • 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: 8673
  • 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.
" If everything seems under control, you’re not going fast enough." - Mario Andretti
Yesterday When I was Young.

Offline Skhilled

  • Administrator
  • *
  • Posts: 5916
  • Gender: Male
  • Once you stop trying to learn, you stop living!
  • 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: 8673
  • Gender: Male
  • View Gallery
Re: [code] Christmas Countdown Block
« Reply #6 on: December 05, 2017, 12:21:12 PM »
 :opps:
Sorry about your dinner.  :-[
" If everything seems under control, you’re not going fast enough." - Mario Andretti
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.0.14 / Tinyportal 1.3R
Camera Craniums Running SMF 2.0.13 / Tinyportal 1.2, bridged with Coppermine 1.5.36, SMF Arcade 2.5 RC2
Guitarist Guild Running SMF 2.0.14 / Tinyportal 1.2R
The Garden Machinery Forum Running SMF 2.0.14 / Tinyportal 1.3R

Offline Ken (OP)

  • Vietnam Era Veteran
  • Administrator
  • *
  • Posts: 8673
  • 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.
" If everything seems under control, you’re not going fast enough." - Mario Andretti
Yesterday When I was Young.