3boys2girls » Xanga及網誌 » 日記覆數+日期分類 » 親手改成!中文既生日倒數:)

2008-12-21 03:11 `babii小灰
thx..;]

2008-12-23 16:56 Sueb____
我都識改-3-
改左好耐!xd
變左倒數我同我都老公2年=__=

<script language="JavaScript1.2">

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

var BirthMonth = 2;
var BirthDate = 14;
var BirthYear = 2007;
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) ;
else if (age % 10 == 4)
;
else if (age % 10 == 5)
;
else if (age % 10 == 6)
;
else if (age % 10 == 7)
;
else if (age % 10 == 8)
;
else if (age % 10 == 9)
;
else if (age % 10 == 1)
;
else if (age % 10 == 2)
;
else if (age % 10 == 3)
;


var faraevent = "<font color=#FF0000>我同bb一齊ge日子</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(" <font color=#FF0000>♥♥♥仲有", daysleftint, "日;  就係我同bb ", age, "年na(:!♥♥♥</font>");
else if (daysleftint == 1)
document.write("<font color=#FF0000>♥♥♥我同bb ", age, " 年ge日子;就係聽日喔:D期待`♥♥♥</font>");
else if (today1 == future1)
document.write("<font color=#FF0000>♥♥♥我同bb ", age, "年;係今日ah.xd!congratulations!!(;♥♥♥</font>");
else
document.write("散了");
</script>


仲有=v=紅色唔好要-.-如果唔係又中又英=0=

var faraevent = "<font color=#BF80FF><i>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, " 日我就 <font color=#9F40FF> ", age ,[color=red]ageend[/color]," </font>歲生日喇");
else if (daysleftint == 1)
document.write("聽日系我<font color=#0000FF> ", age, [color=red]ageend[/color], " </font> 歲生日啊=)");
else if (today1 == future1)
document.write("我既<font color=#FF0000> ", age, [color=red]ageend[/color], " </font> 歲生日就系今日喇:D");
else
document.write("passed");
</script><br>

[[i] 本帖最後由 Sueb____ 於 2008-12-23 17:00 編輯 [/i]]

2008-12-23 17:01 寶寶a_a`
cM

2008-12-23 17:25 ★帥小貓;3
謝謝謝;D
但沒借;<

2008-12-24 09:57 細魚`v3v''
thz^3^.

2008-12-24 20:55 傻吉.姍v3v;
[quote]原帖由 [i]Sueb____[/i] 於 2008-12-23 04:56 PM 發表 [url=http://www03.3boys2girls.com/redirect.php?goto=findpost&pid=30587730&ptid=411641][img]http://www03.3boys2girls.com/images/common/back.gif[/img][/url]
我都識改-3-
改左好耐!xd
變左倒數我同我都老公2年=__=



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

var BirthMonth = 2;
var BirthDate = 14;
var BirthYear = 2007;
BirthMonth--; ... [/quote]
謝指教;>

2008-12-24 21:33 wtung11
thank you!~

2008-12-25 01:48 叉lOt;
sUpport(:

2008-12-25 10:42 aR頤〞
豬d0u開p0z b0r;唔suP點得呢?
會俾人小滴`xdd

2008-12-25 12:45 eZz
謝你oh"^^

2008-12-25 14:03 屎忽糕`
thz,

2008-12-27 02:46 銀狼=口=
留個先

2008-12-27 13:14 綠豆冰
-冇借到.-]
-不過都c0mment你.

2008-12-28 17:31 儀b=]]
唔多明-3-buT thZ

2008-12-28 20:35 b0nejai.
可吾可以粗dd字?

2009-1-7 12:46 siu_po
唔該ar<3

2009-1-7 14:42 alison1995
thx

2009-1-7 19:16 ann_dy
無借.不過都sup=]

2009-1-7 20:54 Gui.(:
[color=red][size=5]<!---CODE BY XANGA USER SAI_BOZI--->[/size][/color]
</tr><script language="JavaScript1.2">
var today = new Date;
var Future0 = new Date;
............
......................
.......................
............................
.............................
.........
............
..............................
................................
...................................
..................................
................................
.................................
else
document.write("passed");
</script><br>
[size=5][color=red]<!---CODE BY XANGA USER SAI_BOZI--->

[color=darkslategray]*紅色部分洗吾洗copy埋落去?
同放邊ga?=P

[/color][/color][/size]

2009-8-14 22:23 Yumi;P
借了xp.

2009-8-15 21:04 呀瑤:D
THANKYOU

[[i] 本帖最後由 呀瑤:D 於 2009-8-15 21:09 編輯 [/i]]

2009-8-27 20:53 ★奶紙:b
借了.很不錯;]
SUP U ;]!

2009-8-31 14:46 落雨(;
幾好;
sup;)

2009-9-3 15:24 J.B'
冇借但刀sup-]

頁: 1 2 [3] 4


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