- 積分
- 16
- 威望
- 16
- 金錢
- 16
- 最後登錄
- 2012-2-11
|
2# ... - <script>function aDate(date){var year=date.getFullYear().toString().substring(2,4);var month = (date.getMonth() + 1)<10? "0" + (date.getMonth() + 1):(date.getMonth() + 1); var day = date.getDate()<10? "0" + date.getDate(): date.getDate();return year+"."+month + "." + day; }var sub= document.getElementById("subject"),date=new Date();if(document.getElementById("returnmessage")!=null&&document.getElementById("returnmessage").innerHTML.indexOf("发新话题")!=-1){if(sub&&sub.value==""){sub.value="[" + aDate(date) + "]";}}
- </script>
複製代碼 |
|