Javascript (JS) Files and HTML with File Manager

  • 1
  • Question
  • Updated 5 years ago
  • Answered
Hello,

I am trying to get a countdown timer running on my website. I have a .js file and images which live in file manager under a countdown folder. So JS file is in Countdown and images in Countdown/Images. These images are of numbers used in the countdown timer.

I have created a small HTML widget and added the countdown HTML code which calls the JS file.
When I save the code all I get is the HTML text and nothing else.

I am a Silver Member.

Any help would be much appreciated.

Thanks
Photo of Mysterio66

Mysterio66

  • 2 Posts
  • 0 Reply Likes

Posted 5 years ago

  • 1
Photo of Gop

Gop

  • 7473 Posts
  • 2115 Reply Likes
Hello Zia,

If you like you can post the code here and it can be examined to see if there is any apparent issue with the codes and files.
Photo of Mysterio66

Mysterio66

  • 2 Posts
  • 0 Reply Likes
Hi

The code is an example downloaded from this site:
http://www.gieson.com/Library/project...

Below is the example JS and HTML I am using:

I am testing the Yola functionality out and there doesn't seem to be any guidence
// Usage:
// var test = new Countdown({time:15});

var CountdownImageFolder = "http://myyolasite.com/resources/count...";
var CountdownImageBasename = "flipper";
var CountdownImageExt = "png";
var CountdownImagePhysicalWidth = 41;
var CountdownImagePhysicalHeight = 60;

var CountdownWidth = 200;
var CountdownHeight = 30;

var CountdownLabels = {
second : "SECONDS",
minute : "MINUTES",
hour : "HOURS",
day : "DAYS",
month : "MONTHS",
year : "YEARS"
};

var CountdownInterval = 76;

------------------------------------------------------------------------------------

<!DOCTYPE html SYSTEM>

Countdown Examples 2

<!-- =========================================================== -->
<!-- COUNTDOWN NOTE:
When using more than one Countdown,
we recommend placing a reference
to the script once in HEAD -->
<!-- =========================================================== -->

<!-- =========================================================== -->
Example 1 (flip clock)

<!-- =========================================================== -->