追蹤
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];
}


  • 24987

    累積人氣

  • 0

    今日人氣

    0

    追蹤人氣

破相了

那一天睡覺前小恩心情特好的,
一直在床上唱唱跳跳的,
提醒他危險就是不聽,
沒想到竟然就真的撞到了眼角,
害我趕緊一把抱起來,用衛生紙壓住止血,
幸好沒傷到眼睛,不然就太糟糕了.

撞到後恩爸趕緊拿冰塊起來冰敷,
大哭一陣子後,終於停了.




看到我拿相機,還非常開心的朝我YA!



隔天一早起床有點發炎現象,
甚至整個眼皮都腫了起來,
看了醫生,擦了藥,淤青部份退了,
可是還是留下疤痕了,
真是慘痛的教訓啊!

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