📄 index_top.asp
字号:
<%
if session("pwd")<>"pass" then
response.Redirect "../admin_login.asp"
response.end
end if
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>公铁联运</title>
</head>
<body leftmargin="0" topmargin="0" onLoad="startclock();">
<div align="right">
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td height="86" background="../image/admin_login_45.gif" ><img src="../image/admin_top_icon_1.gif" width="30" height="30" id=Clock>
<img src="../image/admin_top_icon_6.gif" width="30" height="30"> <img src="../image/admin_top_icon_5.gif" width="30" height="30">
<font color="#FFFFFF"> </font> <font color="#FFFFFF" > </font><font color="#FFFFFF">
<form name='jsfrm'>
<input type=text name='face' size=34 value='' style="border:#ffff33 1px dotted">
</form></font>
<td width="24%" background="../image/admin_login_45.gif" >
<td width="18%" background="../image/admin_login_45.gif" > <div align="right"><font color="#FFFFFF"><img src="../image/images/t_4.gif" width="38" height="52" border="0"><img src="../image/images/t_5.gif" width="39" height="52" border="0"><a href="../../index1.asp" target="_parent"><img src="../image/images/t_6.gif" width="38" height="52" border="0"></a>
</font></div></td>
</tr>
</table>
<div align="center"><font color="#FFFFFF"> </font> <font color="#FFFFFF"> </font></div>
</div>
</body>
</html>
<script language="JavaScript">
<!-- Hide
var timerID = null
var timerRunning = false
function MakeArray(size)
{
this.length = size;
for(var i = 1; i <= size; i++)
{
this[i] = "";
}
return this;
}
function stopclock (){
if(timerRunning)
clearTimeout(timerID);
timerRunning = false
}
function showtime () {
var now = new Date();
var year = now.getYear();
var month = now.getMonth() + 1;
var date = now.getDate();
var hours = now.getHours();
var minutes = now.getMinutes();
var seconds = now.getSeconds();
var day = now.getDay();
Day = new MakeArray(7);
Day[0]="星期天";
Day[1]="星期一";
Day[2]="星期二";
Day[3]="星期三";
Day[4]="星期四";
Day[5]="星期五";
Day[6]="星期六";
var timeValue = "";
timeValue += year + "年";
timeValue += ((month < 10) ? "0" : "") + month + "月";
timeValue += date + "日 ";
timeValue += (Day[day]) + " ";
timeValue += ((hours <= 12) ? hours : hours - 12);
timeValue += ((minutes < 10) ? ":0" : ":") + minutes;
timeValue += ((seconds < 10) ? ":0" : ":") + seconds;
timeValue += (hours < 12) ? "上午" : "下午";
document.jsfrm.face.value = timeValue;
timerID = setTimeout("showtime()",1000);
timerRunning = true
}
function startclock () {
stopclock();
showtime()
}
//-->
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -