<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999.xhtml">
<head>
<title>check system time</title>
<style type="text/css">
body {background-color: navy}
</style>
<script type="text/javascript">
<!--HIDE FROM INCOMPATIBLE BROWSER
var hour
today=new Date()
hour=today.getHours();
//STOP HIDING FROM INCOMPATIBLE BROWSER -->
</script>
</head>
<body>
<script type="text/javascript">
<!--HIDE FROM INCOMPATIBLE BROWSER
var a;
var b;
if (hour>=00 && hour<12)
a=1;
while(a<=10){
document.write("<p style='font-size:16pt;color:white'>"+a+"</p>");
a++;
}
if(hour>=12 && hour<24)
for(b=20;b<=30;b++){
document.write("<strong style='font-size:14pt;color:yellow'>"+b+" "+"</strong>");}
//STOP HIDING FROM INCOMPATIBLE BROWSER -->
</script>
</body>
</html>
"-//W3C//DTD XHTML 1.0 strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999.xhtml">
<head>
<title>check system time</title>
<style type="text/css">
body {background-color: navy}
</style>
<script type="text/javascript">
<!--HIDE FROM INCOMPATIBLE BROWSER
var hour
today=new Date()
hour=today.getHours();
//STOP HIDING FROM INCOMPATIBLE BROWSER -->
</script>
</head>
<body>
<script type="text/javascript">
<!--HIDE FROM INCOMPATIBLE BROWSER
var a;
var b;
if (hour>=00 && hour<12)
a=1;
while(a<=10){
document.write("<p style='font-size:16pt;color:white'>"+a+"</p>");
a++;
}
if(hour>=12 && hour<24)
for(b=20;b<=30;b++){
document.write("<strong style='font-size:14pt;color:yellow'>"+b+" "+"</strong>");}
//STOP HIDING FROM INCOMPATIBLE BROWSER -->
</script>
</body>
</html>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货