我有一個倒計時腳本i灣在targetdate作爲值鍵在database.i存儲形式試圖在腳本targetdate = $日期,但它似乎並不閱讀價值。將PHP的值轉換爲JavaScript
<script language="JavaScript">
TargetDate ="1/31/2012 5:00 AM";
CountActive = true;
CountStepper = -1;
LeadingZero = true;
DisplayFormat = "%%D%% Days, %%H%% Hours, %%M%% Minutes, %%S%% Seconds.";
FinishMessage = "It is finally here!";
</script>
<script language="JavaScript" src="http://scripts.hashemian.com/js/countdown.js"></script>
你從哪裏得到代碼示例? – greut 2012-01-15 10:00:20
@greut:你爲什麼問? (無論如何,請查看'countdown.js'的實際[code](http://scripts.hashemian.com/js/countdown.js))。 – Purag 2012-01-15 10:04:49
'語言=「JavaScript」'棄用'type =「text/javascript」',因爲很長一段時間...但老年人很難殺死我猜;-) – greut 2012-01-15 10:07:24