追蹤
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

    追蹤人氣

愛上吃牛肉~~IKEA美食

昨天上網時發現有格友介紹IKEA的瑞典美食, 看到他拍的照片看得愈來愈餓,真是超想吃的, 其中最讓我動心的就是烤牛肉, 馬上叫恩爸來看,然後自行決定明天午餐要吃IKEA, 行動派快到恩爸都無力反駁. 今天到了IKEA美食部,當場傻眼,因為不會點餐, 仔細觀察了別人的點餐方式後才知道原來它算是自助式的, 自己端完之後再去結帳,而且它有餐點的推車算是蠻便利的, 不但可以一個人拿完所有的餐點,而且比較安全. 今天共點了烤牛肉.咖哩起司豬排.醃製鮭魚沙拉.兒童肉丸餐 它餐點的份量不算太多,不過價格倒還可以接受, 烤牛肉還算嫩,但還是Costco比較好吃,不過它附的馬鈴薯泥還不錯. 起司豬排味道還好,肉丸餐附的薯條不錯,小恩還蠻喜歡的, 裡面最讚的應該是有提供兒童安全座椅, 讓小恩坐了之後超想買一把回家放,不過要價669元. 還有裡面提供的飲料是免費無限續杯,算是蠻不錯的. 可惜的是吃飯的時候完全忘了拍照, 算了,反正我也當不了美食推薦家,所以就算了. 吃完後逛了一下傢俱部,然後又在出口的美食區買了霜淇淋, 霜淇淋的一支10元,味道很濃,小恩超愛吃的,一直搶著要吃.
相簿設定
標籤設定
相簿狀態