?? documenttitle.html
字號:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>Javascript實例</title>
<script language="javascript" type="text/javascript">
<!--
function GetTime()
{
var now=new Date();
var years,months,days,hours,minutes,seconds,myTime;
years=now.getFullYear();
months=now.getMonth()+1;
days=now.getDate();
hours=now.getHours();
minutes=now.getMinutes();
seconds=now.getSeconds();
myTime=years+"年"+months+"月"+days+"日 "+hours+":"+minutes+":"+seconds;
document.title=myTime;
window.status=myTime;
var timer1=setTimeout("GetTime()",1000);
}
//-->
</script>
</head>
<body onload="GetTime();">
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -