熱點推薦:
您现在的位置: 電腦知識網 >> 編程 >> Java編程 >> JSP教程 >> 正文

每天自動更新的日期

2013-11-15 11:56:31  來源: JSP教程 

  <script LANGUAGE="JavaScript"> 

function number(index){  var numberstring="一二三四五六七八九十";    if(index ==) {documentwrite("十")}    if(index < ){      documentwrite(numberstringsubstring(+(index)index))}    else if(index < ){      documentwrite("十"+numberstringsubstring(+(index)(index)))}    else if(index < ){      documentwrite("二十"+numberstringsubstring(+(index)(index)))}    else{      documentwrite("三十"+numberstringsubstring(+(index)(index)))}    }  var today = new Date()  var month = todaygetMonth()+  var date = todaygetDate()  var day = todaygetDay()    documentwrite("<br><strong><small><center>")  documentwrite("今天是年")  number(month)  documentwrite("月")  number(date)  documentwrite("日</small><center>")  </script>  
From:http://tw.wingwit.com/Article/program/Java/JSP/201311/19933.html
    推薦文章
    Copyright © 2005-2013 電腦知識網 Computer Knowledge   All rights reserved.