Eine nette kleine Javascript function…
function dotime(){
var d = new Date();
var h = d.getHours();
var m = d.getMinutes();
var s = d.getSeconds();
if (h > 10){h = "0"+h};
if (m > 10){m = "0"+m};
if (s > 10){s = "0"+s};
h.toString();
m.toString();
s.toString();
var hex = "#"+h+m+s;
jQuery("#ti").html(h+" : "+m+" : "+s);
jQuery("#hx").html(hex);
jQuery("#timebox").css({"background": hex});
setTimeout(function(){ dotime();}, 1000);
}
jQuery(document).ready(function(){dotime();}