TOTAL=9454;
COUNT=new Array(5,26,28,25,35,31,10,12,21,16);
//背景色 (なし=空白)
sBG="";
//外枠の色
sBC="#000000";
//文字の色
sTC="#000000";
//文字のフォント
sTF="Tahoma, MS UI Gothic";
//バーの枠の色
sBBC="#000000";
//アクティブなバーの内側の色
sBAG="#888888";
//アクティブでないバーの内側の色
sBBG="#000000";
//値変化の間隔(ミリ秒)
iIT=3000;
//以下実行部
Contents='
Total:
';
Contents+=''+TOTAL+'
';
Contents+='Today:
';
Contents+=''+COUNT[0]+'
';
Contents+='Yesterday:
';
Contents+=''+COUNT[1]+'
';
Max=3;
for(I=1;I<10;I++)Max=Math.max(Max,COUNT[I]+4);
if(Max<30)Max=30;
for(I=1;I<10;I++){
Height=Math.floor(((COUNT[I]+4)/Max)*30);
Contents+='';
}
String='';
function ShowCount(ID,Num){
with(document.all){
sbar_1.style.background=sBBG;
sbar_2.style.background=sBBG;
sbar_3.style.background=sBBG;
sbar_4.style.background=sBBG;
sbar_5.style.background=sBBG;
sbar_6.style.background=sBBG;
sbar_7.style.background=sBBG;
sbar_8.style.background=sBBG;
sbar_9.style.background=sBBG;
if(Num==1)sbef_text.innerHTML="Yesterday:";
else{
Tail="th";
switch(Num){
case 2:
Tail="nd";
break;
case 3:
Tail="rd";
}
sbef_text.innerHTML="Before of "+Num+Tail+":";
}
sbef_num.innerHTML=COUNT[Num];
}
ID.style.background=sBAG;
Next=Num+1;
if(Num==9)Next=1;
setTimeout("ShowCount(document.all.sbar_"+Next+","+Next+")",iIT);
}
document.write(String);
ShowCount(document.all.sbar_1,1);