/* RANKING出力クラス */
classRanking = function(){
this.record = new Array();
this.record.push(this.setRec("2008ハイスピードオーバルコース","0:00:000","Coming soon","0:00:000","Coming soon","0:07:328","チェイサー","0:06:330","アンタレス"));
this.record.push(this.setRec("2008DXコース","0:00:000","Coming soon","0:00:000","Coming soon","0:00:000","Coming soon","0:00:000","Coming soon"));
this.divider = "
|
\n";
this.html = "";
this.putHtml();
}
var cp = classRanking.prototype;
cp.setRec = function(c,jt,jn,rt,rn,mt,mn,dt,dn){
var obj = new Object();
obj.c = c;
obj.jt = jt;
obj.jn = jn;
obj.rt = rt;
obj.rn = rn;
obj.mt = mt;
obj.mn = mn;
obj.dt = dt;
obj.dn = dn;
return obj;
}
cp.putHtml = function(){
var rec = this.record.length;
for(var i=0 ; i \n";
this.html += " \n";
this.html += " "+this.record[i].c+" \n";
this.html += " | \n";
this.html += "\n";
this.html += " \n";
this.html += "\n";
this.html += " \n";
this.html += " | \n";
this.html += " | \n";
this.html += ""+this.record[i].jt+" "+this.record[i].jn+" | \n";
this.html += " | \n";
this.html += " \n";
this.html += " | \n";
this.html += "
\n";
this.html += " \n";
this.html += "\n";
this.html += " \n";
this.html += " | \n";
this.html += " | \n";
this.html += ""+this.record[i].rt+" "+this.record[i].rn+" | \n";
this.html += " | \n";
this.html += " \n";
this.html += " | \n";
this.html += "
\n";
this.html += " \n";
this.html += "\n";
this.html += " \n";
this.html += " | \n";
this.html += " | \n";
this.html += ""+this.record[i].mt+" "+this.record[i].mn+" | \n";
this.html += " | \n";
this.html += " \n";
this.html += " | \n";
this.html += "
\n";
this.html += " \n";
this.html += "\n";
this.html += " \n";
this.html += " | \n";
this.html += " | \n";
this.html += ""+this.record[i].dt+" "+this.record[i].dn+" | \n";
this.html += " | \n";
this.html += " \n";
this.html += " | \n";
this.html += "
\n";
this.html += this.divider;
}
document.write(this.html);
}
delete cp;
// End of Class File