有好用的count up days嗎? - 部落格
By Selena
at 2010-09-17T20:51
at 2010-09-17T20:51
Table of Contents
※ 引述《HatasonJa (Johnny)》之銘言:
: 看起來像作業 XD
: 自己寫一個吧
: 以下是程式碼 貼到Blogger的HTML/JavaScript
: <div id="countdays"></div>
: <script>
: var today=new Date();
: var year2000=new Date(2010,8,12); // 2010/9/12這裡就是你出國那天月份請減1
: var diff=today-year2000;
: diff=Math.round(diff/1000/60/60/24);
: document.getElementById("countdays").innerHTML = "已流浪" + diff + "天";
: </script>
借標題一問
因為從沒有學過類似,所以只好向各位大大求助 ^^"
我想要的是"倒數計時器" (也是天數~)
就像上面那樣,只要有文字就好了
雖然好像功能很相似,但自己摸索了一下,還是不知道怎麼改|||
麻煩了,感謝 <(_ _)>
--
奉真實與忠誠之名,我將對你展開報復。
http://thisandthat07.blogspot.com/
--
: 看起來像作業 XD
: 自己寫一個吧
: 以下是程式碼 貼到Blogger的HTML/JavaScript
: <div id="countdays"></div>
: <script>
: var today=new Date();
: var year2000=new Date(2010,8,12); // 2010/9/12這裡就是你出國那天月份請減1
: var diff=today-year2000;
: diff=Math.round(diff/1000/60/60/24);
: document.getElementById("countdays").innerHTML = "已流浪" + diff + "天";
: </script>
借標題一問
因為從沒有學過類似,所以只好向各位大大求助 ^^"
我想要的是"倒數計時器" (也是天數~)
就像上面那樣,只要有文字就好了
雖然好像功能很相似,但自己摸索了一下,還是不知道怎麼改|||
麻煩了,感謝 <(_ _)>
--
奉真實與忠誠之名,我將對你展開報復。
http://thisandthat07.blogspot.com/
--
Tags:
部落格
All Comments
By Irma
at 2010-09-19T20:16
at 2010-09-19T20:16
By Ethan
at 2010-09-22T06:46
at 2010-09-22T06:46
By Harry
at 2010-09-24T10:15
at 2010-09-24T10:15
By Ophelia
at 2010-09-25T12:42
at 2010-09-25T12:42
By Puput
at 2010-09-30T05:59
at 2010-09-30T05:59
Related Posts
噗浪plurk又當了????
By Olga
at 2010-09-17T15:30
at 2010-09-17T15:30
痞客邦的部落格要怎麼訂閱功能?
By Barb Cronin
at 2010-09-17T14:06
at 2010-09-17T14:06
Re: PTT Blog板友簽到簿(PTTBlogRolling!)
By Wallis
at 2010-09-17T12:02
at 2010-09-17T12:02
左側欄在首頁無法顯示
By Mia
at 2010-09-17T02:54
at 2010-09-17T02:54
訂閱無名
By Tristan Cohan
at 2010-09-16T23:12
at 2010-09-16T23:12