PHP beginner |
|
is dit wat?
<HEAD>
<SCRIPT language="JavaScript">
<!--
function startclock()
{
var thetime=new Date();
var nhours=thetime.getHours();
var nmins=thetime.getMinutes();
var nsecn=thetime.getSeconds();
document.clockform.clockspot.value=nhours+":"+nmins+":"+nsecn;
setTimeout('startclock()',1000);
}
//-->
</SCRIPT>
</HEAD>
<BODY onLoad="startclock()">
<FORM name="clockform">
Current Time: <INPUT TYPE="text" name="clockspot" size="15">
</FORM>
</BODY>
<SCRIPT language="JavaScript"> <!-- function startclock() { var thetime=new Date(); var nhours=thetime.getHours(); var nmins=thetime.getMinutes(); var nsecn=thetime.getSeconds(); document.clockform.clockspot.value=nhours+":"+nmins+":"+nsecn; setTimeout('startclock()',1000); } //--> <BODY onLoad="startclock()"> Current Time: <INPUT TYPE="text" name="clockspot" size="15">
|