js显示当前的年月日时分秒
<div align="center">
<table width="100%" height="21" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td valign="top">
目前时间: <span class="style4" id="webasp_time"></span>
<script>setInterval("webasp_time.innerHTML=new Date().toLocaleString()+' 星期'+'日一二三四五六'.charAt (new Date().getDay());",1000);</script>
</td>
</tr>
</table>
</div>
<table width="100%" height="21" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td valign="top">
目前时间: <span class="style4" id="webasp_time"></span>
<script>setInterval("webasp_time.innerHTML=new Date().toLocaleString()+' 星期'+'日一二三四五六'.charAt (new Date().getDay());",1000);</script>
</td>
</tr>
</table>
</div>