Admin Administrator
Cinsiyet : Nerden : http://twitter.com/ErenAlg Yaş : 39 Mesaj Sayısı : 13679 Başarı : 1482582 Rep Gücü : 7771
| Konu: Sayfanın kaç saniyede oluşturulduğunu gösteren kod 31/12/2009, 19:33 | |
| - Kod:
-
<div align="center"><!-- TWO STEPS TO INSTALL LOADING TIME INDICATOR:
1. Copy the coding into the HEAD of your HTML document 2. Add the last code into the BODY of your HTML document -->
<!-- STEP ONE: Paste this code into the HEAD of your HTML document -->
<HEAD>
<script type="text/javascript"> <!-- Begin /* This script and many more are available free online at The Javascript Source!! http://javascript.internet.com Created by: Abraham Joffe :: http://www.abrahamjoffe.com.au/ */
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> </HEAD>
<!-- STEP TWO: Copy this code into the BODY of your HTML document -->
<BODY>
<script type="text/javascript"> <!-- Begin document.write('Bu sayfa <span id="endTime">0.0</span> sürede oluşturuldu..'); var loopTime=setInterval("currentTime()",100); // End --> </script> <!-- script Size: 1.14 KB --> | |
|