<script language="JavaScript" type="text/javascript">
// Prelevato e spiegato su: http://www.web-link.it
function showFilled(Value)
{
return (Value > 9) ? "" + Value : "0" + Value;
}
function StartClock24()
{
TheTime = new Date;
document.clock.showTime.value = showFilled(TheTime.getHours()) + ":" + showFilled(TheTime.getMinutes()) + ":" + showFilled(TheTime.getSeconds());
setTimeout("StartClock24()",1000)
}
</script>
<style type="text/css">
<!--
.input
{
border-style: none;
font-family: Verdana,Arial,Helvetica,sans-serif;
font-size: 10pt;
color : red;
}
-->
</style>
<body onLoad="StartClock24()">
<div align='center'>
<form name="clock"><input type="text" name="showTime" size="8" class="input"></form>
</div>
</body>
0 Responses to “JS: ORARIO”
Leave a Reply