BabyHome
寶寶首頁
寶寶相簿
筆記本
寶寶日記
留言版


會員登入
加入會員
BabyHome 首頁

 

 

 


╭。☆ 三隻小豬的KITTY世界 ☆。╮
 
位置--> 筆記本╭。☆ 網頁製作分享區 ☆。╮ ╭。☆ 結婚框&懷孕框☆。╮




若有呷意
直接複製語法帶回
如果不會
可至留言版告知我
我可幫你製作喔~~

 Love Forever結婚框語法2008-07-18 Page:1/1

<!--年齡框包含計算語法閃字特效_開始-->
<table border="0" cellspacing="0" cellpadding="0" id="table4">
<tr> <td width="135"><img SRC="http://xs215.xs.to/xs215/07221/h123-3.gif" WIDTH="135" BORDER="0" HEIGHT="134"></td>
<td style="BACKGROUND: url(http://xs215.xs.to/xs215/07221/h123-4.gif)" height=134 cellSpacing=0 cellPadding=0 width=220 border=0><form><CENTER>
<table width="220" height="134" border="0" cellpadding="0" cellspacing="0" id="table5">
<tr> <td style="position:absolute">
<center><SCRIPT Language="JavaScript">
<!--
if(navigator.appVersion.charAt(0)>=4 && (navigator.appVersion).indexOf("MSIE")!=-1) isIE4 = true;
else isIE4 = false;
function textAnima_color3(id,n) {
el = document.all.item(id,n);
charColor = el.getAttribute("SET_COLOR");
cur = el.getAttribute("CURRENT_CHAR");
if(cur=="") cur = 0;
getHTML= el.getAttribute("SET_TEXT");
if(getHTML == "") {
getHTML = el.innerText;
el.setAttribute("SET_TEXT",getHTML);
}
bef_t = getHTML.substring(0,cur); ;
aft_t = getHTML.substring(eval(cur)+1,getHTML.length);
cur_t = getHTML.substr(cur,1);
cur_t = cur_t.fontcolor(charColor);
el.innerHTML = bef_t + cur_t + aft_t;
cur++;
if(cur > getHTML.length) cur=0;
el.setAttribute("CURRENT_CHAR",cur);
getT = el.getAttribute("SET_TIME");
if(getT=="") getT = 100;
setTimeout("textAnima_color3('"+id+"',"+n+")",eval(getT));
}
if(isIE4) {
window.onload = init;
}
function init() {
id = "ANIMA_TEXT_COLOR3";
len = document.all.item(id).length;
if(!len) len=1;
for(var i=0;i<len;i++) {
textAnima_color3(id,i);
}
}
-->
</SCRIPT>
<span style="FONT-SIZE:10pt;COLOR:hotpink;FONT-FAMILY:Comic Sans MS;Times New Roman" id="ANIMA_TEXT_COLOR3" SET_COLOR="#ffffff" SET_TIME="80" CURRENT_CHAR SET_TEXT><script language="JavaScript">
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 = 結婚西元年 ;
var b_mm = 月份;
var b_dd = 日期;


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];
}
</script></span></center></td></tr></table>

</b></td>
</tr>
</table>
<!--年齡框包含計算語法閃字特效_結束--> 



Copyright 2024, BabyHome  | 隱私權政策