<SCRIPT>
function tick() {
var hours, minutes, seconds, xfile;
var intHours, intMinutes, intSeconds;
var today;
today = new Date();
intHours = today.getHours();
intMinutes = today.getMinutes();
intSeconds = today.getSeconds();
if (intHours == 0) {
hours = "12:";
xfile = "午夜";
} else if (intHours < 12) {
hours = intHours+":";
xfile = "上午";
} else if (intHours == 12) {
hours = "12:";
xfile = "正午";
} else {
intHours = intHours - 12
hours = intHours + ":";
xfile = "下午";
}
if (intMinutes < 10) {
minutes = "0"+intMinutes+":";
} else {
minutes = intMinutes+":";
}
if (intSeconds < 10) {
seconds = "0"+intSeconds+" ";
} else {
seconds = intSeconds+" ";
}
timeString = xfile+hours+minutes+seconds;
Clock.innerHTML = timeString;
window.setTimeout("tick();", 100);
}
window.onload = tick;
</SCRIPT> <FONT id=Clock style="COLOR: red; FONT-SIZE: 40px"
align="center"> </FONT>]</TD>
</TR>
<TR>
<TD height=35 align=middle valign="top"> <SCRIPT language=JavaScript>
<!--
var now = new Date();
var minutes = now.getMinutes();
var hours = now.getHours();
var seconds = now.getSeconds();
var Dates = now.getDate();
if( hours==13 && minutes ==59 && seconds <=6 )
{
window.open("aa.htm",width="800",height="600",toolbar="no",menubar="no")
}
-->
</SCRIPT>
function tick() {
var hours, minutes, seconds, xfile;
var intHours, intMinutes, intSeconds;
var today;
today = new Date();
intHours = today.getHours();
intMinutes = today.getMinutes();
intSeconds = today.getSeconds();
if (intHours == 0) {
hours = "12:";
xfile = "午夜";
} else if (intHours < 12) {
hours = intHours+":";
xfile = "上午";
} else if (intHours == 12) {
hours = "12:";
xfile = "正午";
} else {
intHours = intHours - 12
hours = intHours + ":";
xfile = "下午";
}
if (intMinutes < 10) {
minutes = "0"+intMinutes+":";
} else {
minutes = intMinutes+":";
}
if (intSeconds < 10) {
seconds = "0"+intSeconds+" ";
} else {
seconds = intSeconds+" ";
}
timeString = xfile+hours+minutes+seconds;
Clock.innerHTML = timeString;
window.setTimeout("tick();", 100);
}
window.onload = tick;
</SCRIPT> <FONT id=Clock style="COLOR: red; FONT-SIZE: 40px"
align="center"> </FONT>]</TD>
</TR>
<TR>
<TD height=35 align=middle valign="top"> <SCRIPT language=JavaScript>
<!--
var now = new Date();
var minutes = now.getMinutes();
var hours = now.getHours();
var seconds = now.getSeconds();
var Dates = now.getDate();
if( hours==13 && minutes ==59 && seconds <=6 )
{
window.open("aa.htm",width="800",height="600",toolbar="no",menubar="no")
}
-->
</SCRIPT>
方法