Loading...
Как на javascript сделать, чтобы в игре время шло без обновления
________
посл. ред. 15.12.2017 в 23:32; всего 1 раз(а); by lotos3
lotos3 , у меня в темах поищи темк "помощь по ajax" там есть все :-)
Sex_na_pJlyage , ок
lotos3 , <div class = "center" id="timer"></div>

<script type="text/javascript">
setInterval (
function ()
{
function ad0 (x) {return ((x < 10) ? '0' : '') + x}
var tim = new Date (); with (tim)
document.getElementById ('timer').innerHTML =
'' + [ad0 (getHours ()),
ad0 (getMinutes ()),
ad0 (getSeconds ())].join (':');
},
1);

</script>
Mr_Grey , неработает
https://myrusakov.ru/javascript-digital-watch.html
Онлайн: 4
Время:
Gen. 0.0744
(c) Bym.Guru 2010-2026