Parašė edeni· 2008 Rugs. 24 14:09:04
#6
<script language="javascript">
<!--
function clockon(hour, min, sec)
{
hours= hour
minutes= min
seconds= sec
seconds++;
if ( seconds == 60 )
{
seconds = "0";
minutes++;
}
if ( minutes == 60 )
{
minutes = "0";
hours++;
}
if ( hours == 24 )
hours = "0";
if (eval(hours) <10) {hours="0"+hours}
if (eval(minutes) < 10) {minutes="0"+minutes}
if (eval(seconds) < 10) {seconds="0"+seconds}
//document.all.txtTime.value = hours + ":" + minutes + ":" + seconds
//document.all.realTime.value = hours + ":" + minutes + ":" + seconds
txtTime.innerHTML = hours + ":" + minutes + ":" + seconds
realTime.innerHTML = hours + ":" + minutes + ":" + seconds
setTimeout("clockon("+hours+","+minutes+","+seconds+")",1000)
}
//-->
</script>
Toliau kaip nors prisitaikysi
EDIT: neveikia ;(
Redagavo edeni· 2008 Rugs. 24 14:09:52