3boys2girls » Xanga及網誌 » 文字特效 » 生日倒數

2007-12-6 10:56 Skrymir乂健
生日倒數

放係header/website states都得

改生日日期




<script language="JavaScript1.2">

var today = new Date;
var Future0 = new Date;

var BirthMonth = [color=Red]11[/color];
var BirthDate = [color=Red]20[/color];
var BirthYear = [color=Red]1985[/color];
BirthMonth--;

Future0.setMonth(BirthMonth, BirthDate);
if (Date.parse(today) > Date.parse(Future0))
{
Future0.setFullYear(today.getYear()+1);
age = (today.getFullYear() - BirthYear) + 1;
}
else
{age = today.getFullYear() - 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 = "<font color=#99CC33>my birthday</font>";

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, " days until <font color=#99CC33>my ", age, ageend, " birthday</font>");
else if (daysleftint == 1)
document.write("<font color=#99CC33>my ", age, ageend, " birthday</font> is tomorrow");
else if (today1 == future1)
document.write("<font color=#99CC33>my ", age, ageend, " birthday</font> is today");
else
document.write("passed");
</script>

2007-12-6 13:03 ^oo^
好耶!!!

2007-12-7 23:42 IM''嘉怡=]
借左...幾靚-v-''

2007-12-8 00:00 ♀◆思子☆cici
幾靚

2007-12-8 10:39 ~『戀』~
點解我吾見戈個野ge..

2007-12-8 22:32 Babe'Shan=)
多謝分享!

2007-12-9 12:50 siu詩
借左=]

2007-12-9 13:14 細欣=]
thx"

2007-12-9 17:00 -3-`
唔得GE?!

2007-12-9 19:07 siu蚊蚊:]`
wa`
有排先bif-day.
但thz

2007-12-11 00:28 欣欣
借左,,謝謝=]

2007-12-11 13:36 狗狗...=]
th''x=]

2007-12-20 19:51 {[KaI]}﹏雞
借左*\/*
令也'''''
ThzZ

2007-12-21 20:32 臭.蛋
借左
THZZ

2007-12-22 15:05 yan0923
thz=]

2007-12-26 19:06 細欣=]
thx^^

2007-12-30 22:33 lamjai-_-
借左,thz

2007-12-31 16:33 `kwan;)
thx`<3'

2008-1-5 22:48 h0怡
系吾系全部都copy晒亞?!

2008-1-6 13:19 晴ChInG`
th'Z

2008-1-31 13:36 i'M甘桔寶寶
借左, thz

2008-2-5 11:43 我系祕密-v-
THZ你:)
- 我吾駛改生日日期XD
我1120XP

2008-2-7 20:12 kin
GD POST!!!!! SUPORTY

2008-2-17 14:36 貝貝:)
thx 喔~''

頁: [1] 2 3 4
查看完整版本: 生日倒數


Powered by Discuz! Archiver 5.5.0  © 2001-2006 Comsenz Inc.