Diary List
')
DiaryAdd=window.location.pathname;
DiaryName=DiaryAdd.split("/");
YY=new Date().getFullYear();
MM=new Date().getMonth()+1;
RemainYear=YY-StartYear;
B=0;
C=0;
if(DiaryName[NowMonthDepth] != "diary.html")
{
Depth=MonthDepth;
}else{
Depth=NowMonthDepth;
};
NowPageMonth=DiaryName[Depth].substring(0,2);
NowPageYear =DiaryName[Depth-1];
if(NowPageYear == YY || NowPageMonth == "di")
{
WriteNowYear();
}else if(NowPageYear == StartYear)
{
WriteStartYear();
}else{
WriteYear();
};
function WriteNowYear()
{
document.write(StyleClassTag);
for(D=0;D
'+(StartYear+D)+'年')};
else{
document.write(''+(StartYear+D)+'年');};
};
document.write(''+YY+'年');
document.write('');
for(A=1;A<=MM;A++)
{
ListStream();
if(NowPageMonth == "di" && A == MM)
{
document.write('- '+B+'月
');
break;
};
if(B == MM){C="../../diary"};
document.write('- '+B+'月
');
};
};
function WriteYear()
{
NowPageOldYear=NowPageYear-StartYear;
NowPageNewYear=YY-NowPageYear;
document.write(StyleClassTag);
for(D=0;D'+(StartYear+D)+'年')}
else{
document.write('- '+(StartYear+D)+'年
');};
};
document.write('- '+NowPageYear+'年
');
document.write('');
for(A=1;A<=12;A++)
{
ListStream();
if(A == 13){break;};
if(C < 10 && C == "2"){C="0"+C;};
document.write('- '+B+'月
');
};
document.write('
');
for(D=1;D<=NowPageNewYear;D++)
{
document.write('- '+(Number(NowPageYear)+D)+'年
');
};
};
function WriteStartYear()
{
document.write(StyleClassTag);
document.write('- '+NowPageYear+'年
');
document.write('');
B=StartMonth-1;
C=StartMonth-1;
for(A=StartMonth;A<=12;A++)
{
ListStream();
if(A == 13){break;};
document.write('- '+B+'月
');
};
document.write('
');
for(D=1;D<=RemainYear;D++)
{
document.write('- '+(StartYear+D)+'年
')
};
};
function ListStream()
{
B++;
C++;
if(C < 10){C="0"+C;};
if(NowPageMonth == A)
{
document.write('- '+B+'月
');
A++;
B++;
C++;
};
};
document.write('
');
document.write(' ');