

عدلت قليلا على الإضافة بتغيير الشكل لجعلها تظهر بشكل أفضل
<style scoped='scoped' type='text/css'>
#load-time {
background:#595959;
font:bold 14px GESSTwoMediumRegular,Tahoma,sans-serif;color:#FFF;
text-align:center;
padding:5px;
border-left:5px solid #63C4F1;
border-right:5px solid #63C4F1;
-webkit-border-radius: 200px;
-moz-border-radius: 200px;
border-radius: 200px;
}
.load-time a img {float:right;padding-left:10px;}
</style>
<div id="load-time">جاري حساب وقت التحميل...</div>
<script type="text/javascript">
var showTime = document.getElementById('load-time'),
startTime = (new Date()).getTime(); // Get the time before `window.onload`
window.onload = function() {
// Get the current time in `window.onload`
var endTime = (new Date()).getTime();
// Now use the `startTime` and `endTime` to calculate the seconds
// And show the result inside `#load-time`
showTime.innerHTML = "مدة تحميل الصفحة = " + ((endTime-startTime)/1000) + " تانية(s).";
};
</script>
إرسال تعليق
جميع الردود تعبّر عن رأي كاتبيها فقط. حريّة النقد والرد متاحة لجميع الزوار بشرط أن لا يكون الرد خارج نطاق الموضوع وأن يكون خال من الكلمات البذيئة. تذكّر قول الله عز وجل (مَا يَلْفِظُ مِن قَوْلٍ إِلاَّ لَدَيْهِ رَقِيبٌ عَتِيد).
EmoticonClick to see the code!
To insert emoticon you must added at least one space before the code.