Ajax Loader
×
HTML
<div id='time'></div>
1
<div id='time'></div>
 
CSS
#time { background-color: #fff; font: 30px 'segoe ui light'; }
1
#time { background-color: #fff; font: 30px 'segoe ui light'; }
 
JavaScript
function clock(date){
1
function clock(date){
2
    var s = date.getSeconds().toString();
3
    var m = date.getMinutes().toString();
4
    var h = date.getHours().toString();
5
    if(s.length==1) s = '0' + s;
6
    if(m.length==1) m = '0' + m;
7
    if(h.length==1) h= '0' + h;
8
    document.getElementById("time").innerHTML = h + ":" + m + ":" + s;
9
}
10
setInterval("clock(new Date())", 1000);
 

standard clock

CSSDeck G+