Knowing how long it takes for your pages to load and what browser and platform your customers are using can be very helpfull...
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var startTime = new Date();
startTime = startTime.getTime();
function doneLoading() {
var stopTime = new Date();
stopTime = stopTime.getTime();
document.form1.LOADING_TIME.value = ((stopTime - startTime) / 1000)
+ " seconds";
document.form1.PAGE.value = document.title;
document.form1.SUBMITTER.click();
}
function checkForDuplicate() {
if (document.form1) {
document.form1.REFERRER.value = document.referrer;
document.form1.PLATFORM.value = navigator.appName
+ " " + navigator.appVersion;
return true;
}
else {
return false;
}
}
// End -->
</script>
<BODY onLoad="doneLoading()" bgcolor="#00FF00">
<SCRIPT LANGUAGE="JavaScript">
<!--
var now = new Date();
// -->
</SCRIPT>
<FORM name="form1" METHOD=post action=" " onSubmit="return checkForDuplicate()">
<input type="hidden" name="PAGE" value="none">
<input type="hidden" name="LOADING_TIME" value="none">
<input type="hidden" name="REFERRER" value="none">
<input type="hidden" name="PLATFORM" value="none">
<input type="submit" name="SUBMITTER" value="Ok">
</form>
| file: /techref/language/JAVA/script/loadtime.htm, 1KB, , updated: 2000/4/12 09:36, local time: 2010/3/20 05:20,
38.107.191.114:LOG IN
|
| ©2010 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? Please DO link to this page! Digg it! <A HREF="http://www.piclist.com/techref/language/JAVA/script/loadtime.htm"> language JAVA script loadtime</A> |
| Did you find what you needed? |
|
The PICList shop now offers mugs, steins and... T-Shirts!!! |
Robotics nuts!Check out http://www.verinet.com/~dlc/ email: dlc@verinet.com... This guy ROCKS! He has made (and sells but also releases code, docs, etc...) for a number of cool little robotic modules including whiskers, IR proximity detect and remote control, Sonar proximity detect, PWM, Servo, compass. Most of these use the little PIC 12C508 controller which costs basically nothing and is soooo tiny.The 4 servos, 2400 baud serial servo controller is a wonder of magic and he sells the programmed chip for $8. Wow! |
.