📄 top.htm
字号:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>top</title>
<script language=JavaScript>
var timerID = null;
var timerRunning = false;
function stopclock (){
if(timerRunning)
clearTimeout(timerID);
timerRunning = false;
}
function startclock () {
stopclock();
showtime();
}
function showtime () {
var now = new Date();
var year =now.getYear();
var month =now.getMonth()+1;
var date =now.getDate();
var day =now.getDay();
if(day==0){
day="日";
}else if(day==1){
day="一";
}else if(day==2){
day="二";
}else if(day==3){
day="三";
}else if(day==4){
day="四";
}else if(day==5){
day="五";
}else{
day="六";
}
var hours = now.getHours();
var minutes = now.getMinutes();
var seconds = now.getSeconds()
var timeValue = year+"年"+month+"月"+date+"日 星期"+day+" ";
timeValue += ((hours >24) ? hours -24 :hours)
timeValue += ((minutes < 10) ? ":0" : ":") + minutes
timeValue += ((seconds < 10) ? ":0" : ":") + seconds
document.clock.time.value = timeValue;
timerID = setTimeout("showtime()",1000);
timerRunning = true;
}
</SCRIPT>
<style type="text/css">
<!--
.style1 {
color: #C60001;
font-weight: bold;
}
.style2 {color: #C60001}
body {
margin-right: -200px;
}
-->
</style>
</head>
<body onload=startclock()>
<table width="100%" height="112" border="0" cellpadding="0" cellspacing="0">
<tr bgcolor="#FFFFFF">
<td width="791" height="79" colspan="5" background="KCM/title.gif" bgcolor="#FFFFFF" > </td>
</tr>
</table>
<table width="794" height="22" cellspacing="0" bgcolor="#FFFFFF">
<tr valign="bottom" class="top2">
<form name="clock">
<td width="190" height="20" align="center" valign="middle" ><input name="time" style="font-size: 9pt;color:#CA0000;border:0" size="30"> </td>
</form>
<td width="328" valign="middle" ><marquee direction="left" scrollamount="2" scrolldelay="2">
<span class="style1"> 员工培训管理系统 </span>
</marquee></td>
<td width="125" align="center" valign="middle"><img src="image/icon_group.gif" width="15" height="15" /><a href="UserEnter.jsp" target="mainFrame" class="style2"><strong>员工登录</strong></a></td>
<td width="150" align="center" valign="middle"><img src="image/icon_profile.gif" width="14" height="16" /><a href="AdminEnter.jsp" target="mainFrame" class="style2"><strong>管理员登录</strong></a></td>
<td width="200" align="center" valign="middle"><img src="image/icon_group.gif" width="14" height="16" /><a href="newuser.htm" target="mainFrame" class="style2"><strong>新员工注册</strong></a></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -