C#技术百科
问问你的心你有没有信心 做事情要专一坚定,执着

 <script type="text/javascript" language="javascript">
var timer0 = null;
var week = new Array( "日", "一", "二", "三", "四", "五", "六" );
timer0 = setTimeout(showTime,1000);
function showTime()
{
   clearTimeout(timer0);
   dt = new Date();
   var weekday = week[dt.getDay()];
   var tp = document.getElementById("timePlace");
   result = dt.toLocaleDateString()+" 星期"+weekday;//+" "+dt.toLocaleTimeString();
   tp.innerHTML = result;
   timer0 = setTimeout(showTime,1000);             
}
   </script>
</head>

<body>
<span id="timePlace"></span>

posted on 2008-06-14 14:08  王德田  阅读(534)  评论(0编辑  收藏  举报