原始碼:

<script language="javascript">
function time(){
now=new Date();
year="西元"+now.getYear()+"年";
month=now.getMonth()+1+"月";
date=now.getDate()+"日";
hour=now.getHours()+"點";
mins=now.getMinutes()+"分";
sec=now.getSeconds()+"秒";
window.status=year+month+date+hour+mins+sec;
window.setTimeout("time()",1000);
}
</script>

範例網頁

arrow
arrow
    全站熱搜

    ALVIN 發表在 痞客邦 留言(0) 人氣()