私が必要としているのは、毎日午前 7 時 40 分に開始し、午後 2 時 15 分に終了する JavaScript のカウントダウン時計です。しかし、午後2時15分に終了すると、午前7時40分に自動再起動する必要があります。
1204 次
1 に答える
0
<script type="text/javascript" src="jquery.js"></script>
// 6 hours and 45 minutes
iMilliseconds = 6 * 60 * 60 * 1000 + 45 * 60 * 1000;
function Restart()
{
Start();
setTimeout(iMilliseconds, Restart);
}
function Start()
{
// Do things
}
$(document).ready(function()
{
Restart();
});
于 2011-04-15T04:03:35.803 に答える