В headerinclude
Код:
<script type="text/javascript">
<!-- Begin
/*
Created by: Abraham Joffe */
var startTime=new Date();
function currentTime(){
var a=Math.floor((new Date()-startTime)/100)/10;
if (a%1==0) a+=".0";
document.getElementById("endTime").innerHTML=a;
}
window.onload=function(){
clearTimeout(loopTime);
}
// End -->
</script>
в footer
Код:
<div align="center">
<script type="text/javascript">
<!-- Begin
document.write('This Page took <span id="endTime">0.0</span> seconds to load.');
var loopTime=setInterval("currentTime()",100);
// End -->
</script>
</div>