?? righttopframe.asp
字號(hào):
<html>
<head>
<base target="_self">
<style>
<!--body, p, td, input { color:#ffffff;font-size: 9pt }.style1 {color: #000000}
.style2 {
color: #FF0099;
font-weight: bold;
}
-->
</style>
<script language="JavaScript">
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
}//停止始終函數(shù)
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.all.clock.innerText = timeValue;
timerID = setTimeout("showtime()",1000);
timerRunning = true
}//標(biāo)準(zhǔn)日期到中文日期的轉(zhuǎn)化函數(shù)
function startclock () {
stopclock();
showtime()
}//打開鬧鐘函數(shù)
</script>
</head>
<body bgcolor="#6699CC" topmargin="0" leftmargin="0" onLoad="startclock()">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1" height="100%">
<tr>
<td valign="bottom" bgcolor="#6699CC" id="clock"></td>
<td valign="bottom" bgcolor="#6699CC"> <p align="right" class="style1"> <marquee direction="left" width=250>
<span class="style2">歡迎使用網(wǎng)上考試系統(tǒng)
</span>
</marquee>
</td>
</tr>
</table>
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -