<!-- PAGE VISIT TIMER --> <!-- This goes in the HEAD of the html file --> <script language="JavaScript" type="text/javascript"> <!-- Copyright 2005, Sandeep Gangadharan --> <!-- For more free scripts go to http://sivamdesign.com/scripts/ --> <!-- var sec = -1; var min = 0; var hour = 0; function timeIt(text) { sec++; if (sec == 60) { sec = 0; min = min + 1; } else { min = min; } if (min == 60) { min = 0; hour += 1; } if (sec<=9) { sec = "0" + sec; } timer = ((hour<=9) ? "0"+hour : hour) + " Hours, " + ((min<=9) ? "0" + min : min) + " Minutes, and " + sec + " Seconds!"; SD=window.setTimeout("timeIt();", 1000); } function theTime() { alert('You were at this page for '+timer); } // --> </script> <!-- This goes into the BODY of the file --> <body bgcolor="#ffffff" onload=timeIt(this.value) onunload=theTime()>