ตุลาคม 11, 2014, 17:05:13
อ่าน 33410 ครั้ง
« เมื่อ: ตุลาคม 11, 2014, 17:05:13 »
นำโค้ดไปใส่ตรงระหว่าง
<body>
</body>
หรือ ครงอื่น ๆ ที่ต้องการให้แสดง ...

<SCRIPT LANGUAGE="JavaScript">
// create a new Date object then get the current time
var start = new Date();
var startsec = start.getTime();
// run a loop counting up to 250,000
var num = 0;
for( var i = 0; i < 250000; i++ )
var stop = new Date();
var stopsec = stop.getTime();
var loadtime = ( stopsec - startsec ) / 1000;
</script>
<SCRIPT>
document.write("หน้านี้ใช้เวลาโหลด " +loadtime+ " วินาที");
</SCRIPT>
« แก้ไขครั้งสุดท้าย: มีนาคม 25, 2019, 01:43:56 โดย CoolhostPlus »

บันทึกการเข้า