firefox展示js系统时间

firefox显示js系统时间网页应用系统显示系统时间.在ZK中: html![CDATA[span idjnkc stylefont-si

firefox显示js系统时间

网页应用系统显示系统时间.在ZK中:

 <html><![CDATA[  <span id="jnkc" style="font-size:12px;color:#FFF;font-weight:bold;">  <script>setInterval("jnkc.innerHTML=new Date().toLocaleString()+' 星期'+'日一二三四五六'.charAt (new Date().getDay());",1000);</script> </span> ]]></html>    

?但是这段代码在firefox中显示不出来,在网上搜到了解决方法:来自http://chinamsdn.iteye.com

?

    <head>      <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />      <title>兼容FireFox的当前时间的JS脚本</title>      </head>            <body>      <DIV id=time>当前时间     <SCRIPT>document.getElementById('time').innerHTML=new Date().toLocaleString()+' 星期'+'日一二三四五六'.charAt(new Date().getDay());setInterval("document.getElementById('time').innerHTML=new Date().toLocaleString()+' 星期'+'日一二三四五六'.charAt(new Date().getDay());",1000);</SCRIPT>      </DIV>     </body>    </html>  

?