http:^^www.cs.washington.edu^homes^nick^misc^time.html

来自「This data set contains WWW-pages collect」· HTML 代码 · 共 46 行

HTML
46
字号
Date: Tue, 10 Dec 1996 20:44:32 GMTServer: NCSA/1.4.2Content-type: text/htmlLast-modified: Fri, 07 Jun 1996 23:29:54 GMTContent-length: 1047<HTML><HEAD><TITLE>Time</TITLE><!-- **** timestamp gizmo adapted from from http://www.c2.org/~andreww/javascript/ **** --><SCRIPT Language="JavaScript"> <!--var timerID = null;var timerRunning = false;function startclock() {	if (timerRunning) clearTimeout(timerID);	timerRunning = true;	showtime();}function showtime() {	var now = new Date();        var month = now.getMonth() + 1; 	var date = now.getDate();        var year = now.getYear();	var hours = now.getHours();	var minutes = now.getMinutes();	var seconds = now.getSeconds();	document.clock.timestamp.value =             "" + month + "/" + date + "/" + year + " @ " +	    ((hours > 12) ? (hours-12) : hours) +	    ((minutes < 10) ? ":0" : ":") + minutes +	    ((seconds < 10) ? ":0" : ":") + seconds +	    ((hours < 12) ? "am" : "pm");	timerID = setTimeout("showtime()", 1000);}// --></SCRIPT></HEAD><BODY onLoad="startclock()"><FORM name="clock" onSubmit="0">It's now <input type="text" name="timestamp" size=21 value="Javascript required!">.</FORM>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?