This will pop up a message and tell the user how long they have been on your site.
</ccDescription>
<ccInstructions>
Place the top part of the script above the HEAD tag. Place the bottom part with the link in the body of your webpage. Make sure you include the onLoad function in your BODY tag.
</ccInstructions>
<ccHeadContent>
<SCRIPT LANGUAGE="JAVASCRIPT">
//Modified by CoffeeCup Software
//This code is Copyright (c) 1998 CoffeeCup Software
//All rights reserved. License is granted to a single user to
//reuse this code on a personal or business Web Site.
function time_arrived() {
enter=new Date();
}
function time_here() {
exit=new Date();
time=(exit.getTime()-enter.getTime())/1000;
time=Math.round(time);
alert ("You have been here for " + time + " seconds. Getting tired?")
}
</SCRIPT>
</ccHeadContent>
<ccBodyContent>
<CENTER>
<FORM>
<INPUT type="button" name="timehere" value="You have been here for..." onClick='time_here()'>