home *** CD-ROM | disk | FTP | other *** search
- #newformat
- _title:Visitor Monitor
- _author:The JavaScript Source
- _source:http://javascript.internet.com/user-details/visitor-monitor.html
- _description:This script will send you an e-mail whenever the page with the script is loaded.
- _mailto:Email address to notify
- _insert-in:inhead
- <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
- <!-- Begin
- var startTime = new Date();
- startTime = startTime.getTime();
- var submissions = 0;
-
- function checkForDuplicate() {
- if (document.form1) {
- document.form1.REFERRER.value = document.referrer;
- document.form1.PLATFORM.value = navigator.appName
- + " " + navigator.appVersion;
- submissions++;
- if (submissions > 1)
- return false;
- else
- return true;
- }
- else {
- return false;
- }
- }
- 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();
- }
- // End -->
- </SCRIPT>
- _end-insert:
- _insert-in:inbodytag
- onLoad="doneLoading()"
- _end-insert:
- _insert-in:inbody
- <FORM name="form1" METHOD=post action="mailto:¤mailto_object$(1)¤?Subject=Devious Visitor Monitor" enctype="text/plain" onSubmit="return checkForDuplicate()">
- <input type="hidden" name="PAGE" value="none">
- <input type="hidden" name="REFERRER" value="none">
- <input type="hidden" name="PLATFORM" value="none">
- <input type="hidden" name="LOADING_TIME" value="none">
- <input type="submit" name="SUBMITTER" value="Click me to let me know you were here">
- </form>
- _end-insert: