|
|
tsunho 於 2010-10-01 05:44 AM 發表:
CM =] 仲有+左你MSN啦
|
|
tungchunkit 於 2010-09-27 10:29 PM 發表:
CoMMeNT,,']
|
|
a1234123 於 2010-09-25 11:21 PM 發表:
CM!!
|
|
bbtsangbb 於 2010-09-19 09:40 AM 發表:
CM'
|
|
kendall 於 2010-09-16 04:16 PM 發表:
路過留cm比你先~*
|
|
candychak 於 2010-09-13 07:17 PM 發表:
♥babiiii♥(K)
|
|
Ywkwyan 於 2010-09-12 06:29 PM 發表:
cmcm
|
|
candyshum123 於 2010-09-12 05:11 PM 發表:
C0MMENT |
|
tsztin_0217 於 2010-09-12 06:51 AM 發表:
-C0mm3nT=P.
|
|
tsztin_0217 於 2010-09-12 06:51 AM 發表:
-C0mm3nT=P.
var today = new Date; var Future0 = new Date; var BirthMonth = 2; var BirthDate = 17; var BirthYear = 1997 BirthMonth--; Future0.setMonth(BirthMonth, BirthDate); if (Date.parse(today) > Date.parse(Future0)) { Future0.setFullYear(today.getYear()+1); age = (today.getYear() - BirthYear) + 1; } else {age = today.getYear() - BirthYear;} if (age % 10 == 0) ageend = 'th'; else if (age % 10 == 4) ageend = 'th'; else if (age % 10 == 5) ageend = 'th'; else if (age % 10 == 6) ageend = 'th'; else if (age % 10 == 7) ageend = 'th'; else if (age % 10 == 8) ageend = 'th'; else if (age % 10 == 9) ageend = 'th'; else if (age % 10 == 1) ageend = 'st'; else if (age % 10 == 2) ageend = 'nd'; else if (age % 10 == 3) ageend = 'rd'; var faraevent = "my birthday"; today1 = Date.parse(today); future1 = Date.parse(Future0); secleft = future1 - today1; miliday = 24 * 60 * 60 * 1000; daysleft = secleft/miliday; daysleftint = Math.round(daysleft); if (daysleftint > 1) document.write("仲有 ", daysleftint, " 日我就 ", age ,ageend," 歲生日拉(;"); else if (daysleftint == 1) document.write("聽日系我 ", age, ageend, " 歲生日啊=)"); else if (today1 == future1) document.write("我既 ", age, ageend, " 歲生日就系今日喇:D"); else document.write("passed"); |
