搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

CSS not loading

  • 4 回覆
  • 2 有這個問題
  • 2 次檢視
  • 最近回覆由 krstgor

more options

This website http://srm-pl.ktc-international.hu/ loads fine in IE, Edge and Google Chrome, but it doesn't load on Firefox. Any help?

This website http://srm-pl.ktc-international.hu/ loads fine in IE, Edge and Google Chrome, but it doesn't load on Firefox. Any help?

被選擇的解決方法

Try changing that last parameter "09" to just "9" (without the quotation marks).

從原來的回覆中察看解決方案 👍 1

所有回覆 (4)

more options

Just the circle? Firefox's Browser Console (Ctrl+Shift+j) displays these script error messages and I suspect these may be related to the problem:

SyntaxError: "0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead File: theme.js:241:70

ReferenceError: theme is not defined File: srm-pl.ktc-international.hu:1067:9

ReferenceError: theme is not defined File: srm-pl.ktc-international.hu:1075:9

Looking at the code in theme.js, it seems to be constructing a date. If I paste these lines into Firefox's web console and run them, I get a slightly different error message:

var austDay = new Date(); austDay = new Date(austDay.getFullYear() + 0, 11 - 1, 24, 09);

=> SyntaxError: 09 is not a legal ECMA-262 octal constant

The various parameters should correspond to:

new Date(year, month, day, hour);

For hour, Firefox accepts 00, 01, 02, 03, 04, 05, 06, 07 but after that, a leading 0 generates the error. It works better without leading zeros, but as end users, we don't have any way to fix it.

more options

Alright, so what exactly should I change?

In my theme.js, the date is in the following format:

},
       // CountDown
       initCountDown: function () {
           var austDay = new Date();
           austDay = new Date(austDay.getFullYear() + 0, 11 - 1, 24, 09);
           $('#defaultCountdown').countdown({until: austDay});
           $('#year').text(austDay.getFullYear());
       },

which is a countodown to November 24, 2016.

So, do I need to try a different date format? What would I put instead?

more options

選擇的解決方法

Try changing that last parameter "09" to just "9" (without the quotation marks).

more options

jscher2000 said

Try changing that last parameter "09" to just "9" (without the quotation marks).

I simply deleted the "09" and now it works like a charm!! :)