追蹤
6.5公分的小腳ㄚ
關於部落格


var today = new Date();
var year = today.getYear();
var month = today.getMonth();
var day = today.getDate();
var t_yy = 0;
var t_mm = 0;
var t_dd = 0;
var b_yy = 2007;
var b_mm = 4;
var b_dd =7;

t_yy = year - b_yy - 1;

if ( month + 1 > b_mm)
{ t_mm = month - b_mm ;
t_yy++;
}
else
t_mm = 12 - b_mm + month;

if (day > b_dd)
{ t_dd = day - b_dd;
t_mm++;
}
else
t_dd = daysInMonth(month, year) - b_dd + day;

if (t_dd > daysInMonth(month, year)-1)
{ t_dd = 0;
t_mm++;
}

if (t_mm > 11)
{ t_mm = 0;
t_yy++;
}

document.write(" 小恩哥哥已經 ");

if (t_yy > 0)
document.write(" " + t_yy + " 歲 ");

if (t_mm > 0)
document.write(t_mm + " 個月");

if (t_dd > 0)
document.write(" 又 " + t_dd + " 天") ;

//****** function set ******

function arrayOfDayInMonths(isLeapYear)
{ this[0] = 31;
this[1] = 28;
if (isLeapYear)
this[1] = 29;
this[2] = 31;
this[3] = 30;
this[4] = 31;
this[5] = 30;
this[6] = 31;
this[7] = 31;
this[8] = 30;
this[9] = 31;
this[10] = 30;
this[11] = 31;
}

function daysInMonth(month, year)
{ var isLeapYear = ((( year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0));
var monthdays = new arrayOfDayInMonths(isLeapYear);
return monthdays[month];
}






var today = new Date();
var year = today.getYear();
var month = today.getMonth();
var day = today.getDate();
var t_yy = 0;
var t_mm = 0;
var t_dd = 0;
var b_yy = 2008;
var b_mm = 11;
var b_dd =1;

t_yy = year - b_yy - 1;

if ( month + 1 > b_mm)
{ t_mm = month - b_mm ;
t_yy++;
}
else
t_mm = 12 - b_mm + month;

if (day > b_dd)
{ t_dd = day - b_dd;
t_mm++;
}
else
t_dd = daysInMonth(month, year) - b_dd + day;

if (t_dd > daysInMonth(month, year)-1)
{ t_dd = 0;
t_mm++;
}

if (t_mm > 11)
{ t_mm = 0;
t_yy++;
}

document.write(" 芸芸妹妹已經 ");

if (t_yy > 0)
document.write(" " + t_yy + " 歲 ");

if (t_mm > 0)
document.write(t_mm + " 個月");

if (t_dd > 0)
document.write(" 又 " + t_dd + " 天") ;

//****** function set ******

function arrayOfDayInMonths(isLeapYear)
{ this[0] = 31;
this[1] = 28;
if (isLeapYear)
this[1] = 29;
this[2] = 31;
this[3] = 30;
this[4] = 31;
this[5] = 30;
this[6] = 31;
this[7] = 31;
this[8] = 30;
this[9] = 31;
this[10] = 30;
this[11] = 31;
}

function daysInMonth(month, year)
{ var isLeapYear = ((( year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0));
var monthdays = new arrayOfDayInMonths(isLeapYear);
return monthdays[month];
}


  • 24988

    累積人氣

  • 0

    今日人氣

    0

    追蹤人氣

小恩成長記錄~1歲5個月

**尿布還是穿L的,想說明年再來戒吧!
**最近比較好溝通了,終於聽得懂人話了.
**會正確的發出ㄇㄚㄇㄚ.ㄅㄚㄅㄚ.ㄍㄡˇ ㄍㄡˇ的音.
**看到狗狗會很開心一直"狗狗"的叫,不過有時候也會指著其他動物喊狗狗啦~
**很喜歡撒嬌,常要人抱.
**也很愛哭鬧,一不順意,就身體呈現軟趴狀態.
**走路方面已經很穩了,而且有時候會有暴衝現象.
**很喜歡蹲著,聽說蹲得穩存得多,真的嗎?
**睡覺前養成了喝牛奶的習慣,或許這樣,所以最近好像有重一點了.
**食慾方面有比較好了,還是喜歡自己吃,還是吃得到處都是,不過有比較會用湯匙了.
**很喜歡音樂,一聽到音樂會跟著左右搖晃.
**很喜歡搖手跟人家說再見,只要一叫他再見,一定會舉手搖並露出燦爛的笑容.
**會自動自發的將垃圾拿到垃圾筒去,有些玩具不見了大概也被他拿去垃圾筒丟掉了吧.
**看到相機時會舉起手並說ㄚ~
**喜歡玩Give me five的遊戲.
**跟他說出門了要穿鞋鞋,會自動的爬上小椅子,脫鞋時也會做出動作.
**會指著媽媽的肚皮喊妹妹,雖然覺得他好像是發ㄇㄚㄇㄚ的音,不過我想他應該是在叫妹妹吧!有時候還會親親媽媽的肚子哦~



相簿設定
標籤設定
相簿狀態