關於部落格






var today = new Date();
var year = today.getFullYear();
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 = 3;
var b_dd = 14;


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] = 31;
this[2] = 28;
if (isLeapYear)
this[2] = 29;
this[3] = 31;
this[4] = 30;
this[5] = 31;
this[6] = 30;
this[7] = 31;
this[8] = 31;
this[9] = 30;
this[10] = 31;
this[11] = 30;
}



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


  • 214089

    累積人氣

  • 1

    今日人氣

    1

    追蹤人氣

一起去採玉米小baby

佐佑愛吃玉米筍,而已都稱它為玉米小baby~ 這天回阿嬤家,剛好遇到阿嬤要去採收玉米筍,佐佑也就跟著去玩囉! ↓大大小小一起來〞助陣〞

↓阿嬤的玉米田

↓阿嬤開始動手囉!
阿嬤怕大家被玉米葉子割傷,要大夥在邊邊〞接收〞。
↓玉米筍來囉!

把玉米筍接過來後,小孩們也〞忙著〞呢! ↓因為小孩們都忙著幫玉米小baby〞剝皮〞、〞拔鬚〞…

↓佐佑也想動手在邊邊〞摘一根〞

↓新鮮現採的〞玉米小baby〞

↓還真的是〞一車〞呢!

這些玉米小baby真的好甜,套一句佐常說的「甜蜜蜜的」。
相簿設定
標籤設定
相簿狀態