ゾヌスキンこんなのが欲しい!
[111:モツ煮(2003/03/02(日) 23:55)]
>>108
余計なお世話ですみませんが、
↓で、かちゅーしゃとかfooter.htmが無いものでも描画時間が計れて
メッセージボックス等のうざい表示ではなく、ひっそりと表示できます。
スクリプトの始めのほうに start_time = new Date(); と書いとく
function rendering_time(){
end_time = new Date();
start_num = start_time.getMilliseconds() + 1000 * (start_time.getSeconds() + (60 * start_time.getMinutes()) + (3600 * start_time.getHours()));
end_num = end_time.getMilliseconds() + 1000 * (end_time.getSeconds() + (60 * end_time.getMinutes()) + (3600 * end_time.getHours()));
var doc = document.body.createTextRange();
doc.collapse(0);
nHTML='描画時間(_秒) : ' + (end_num - start_num);
doc.pasteHTML(nHTML);
}
bodyタグからonLoadで呼ぶ
<body onLoad="rendering_time();">
read.cgi ver4.20.02 +◆6j.hq/hAO6+α