Advertisement
5_2007-2008 Browser/ System Services #174595

Digital Clock

Here is a clock program written in JavaScript.

AI

AI 요약: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

소스 코드
original-source
The source code for it is given below. 
<TABLE BORDER=4 BGCOLOR=CYAN>
  <TR><TD>
	<FORM NAME="clock_form">
	  <INPUT TYPE=TEXT NAME="clock" SIZE=25>
	</FORM>
	<SCRIPT LANGUAGE="JavaScript">
	  <!-- Hide from non JavaScript browsers
	  function clockTick()
	  {
		currentTime = new Date();
		document.clock_form.clock.value = " "+currentTime;
		document.clock_form.clock.blur();
		setTimeout("clockTick()", 1000);
	  }
	  clockTick();
	  // End of clock -->
	</SCRIPT>
  </TD></TR>
</TABLE>
원본 댓글 (3)
Wayback Machine에서 복구됨