Metachecker.net
|
TrafficChecker.net
|
RankChecker.net
Learn Java Script Today
|
Over 5000 Free Fonts
|
Tutorials
|
Javascript Forum
|
Other Javascript Resources
|
Cheat Sheet
JavaScript Basics
Inserting Javascript
Complete Tutorial
Advance DHTML Tutorial
Script archive
Advanced Tutorials
Alert Scripts
Animation
Audio
Background Effects
Banner Ads
Browser Window
Buttons
Button Forms
Calculcators
Calendars
Clocks & Dates
Cookies
Cursor Effects
DHMTL Games
DHTML Miscellaneous
Equivalents
Forms
Games
IE4+ Scripts
IE5+ Scripts
Image Effects
Image Miscellaneous
Links & Buttons
Math Related
Messages Miscellaneous
Miscellaneous
Mouse Tricks
Navigation
Page Details
Password Protection
Pulldown Menus
Random Stuff
Scrolling
Status Bar
Text Animation
User Detail
User Info
Window Control
Form Using Mailto - Thanks Page
Form Using Mailto - Thanks Page. Quick Note: If the user cancels the message they will still be taken to the thank you page.
Insert into <HEAD>
<script language="JavaScript"> <!-- Hide from old browsers var i = 0; function mailMe( form ) { i++; return true; } function startTime(){ if (i != "0"){ var time= new Date(); hours= time.getHours(); mins= time.getMinutes(); secs= time.getSeconds(); closeTime=hours*3600+mins*60+secs; closeTime+=3; Timer(); } } function Timer(){ var time= new Date(); hours= time.getHours(); mins= time.getMinutes(); secs= time.getSeconds(); curTime=hours*3600+mins*60+secs if (curTime>=closeTime){ location="YOUR THANK YOU PAGE";} else{ window.setTimeout("Timer()",1000)} } // --> </script>
Insert into <BODY>
<body onFocus="startTime();"> Now put this part in the body of your document. <form name="testform" method="POST" action="mailto:YOUR E-MAIL ADDRESS?subject=YOUR SUBJECT" onSubmit="return mailMe( this.form )" enctype="text/plain"> Enter your URL:<br> <input type="text" name="URL" value="http://" size=50><br> Enter a description:<br> <input type="text" name="description" value="" size=50><br> <input type="submit" value="Submit URL"> </form>
Other Options
Quick Note: If the user cancels the message they will still be taken to the thank you page. I could not figure out how to block that. Put this part in the <head></head> part of your document. <script language="JavaScript"> <!-- Hide from old browsers var i = 0; function mailMe( form ) { i++; return true; } function startTime(){ if (i != "0"){ var time= new Date(); hours= time.getHours(); mins= time.getMinutes(); secs= time.getSeconds(); closeTime=hours*3600+mins*60+secs; closeTime+=3; Timer(); } } function Timer(){ var time= new Date(); hours= time.getHours(); mins= time.getMinutes(); secs= time.getSeconds(); curTime=hours*3600+mins*60+secs if (curTime>=closeTime){ location="YOUR THANK YOU PAGE";} else{ window.setTimeout("Timer()",1000)} } // --> </script> Now put this inside your body code. <body onFocus="startTime();"> An example is: <BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#FF0000" VLINK="#000080" ALINK="#000080" onFocus="startTime();"> or <body onFocus="startTime();"> Now put this part in the body of your document. <form name="testform" method="POST" action="mailto:YOUR E-MAIL ADDRESS?subject=YOUR SUBJECT" onSubmit="return mailMe( this.form )" enctype="text/plain"> Enter your URL:<br> <input type="text" name="URL" value="http://" size=50><br> Enter a description:<br> <input type="text" name="description" value="" size=50><br> <input type="submit" value="Submit URL"> </form> Now change the e-mail address, subject, YOUR THANK YOU PAGE. If you want to add another box, just insert this line <input type="text" name="ANY NAME" value="" size=50><br> You can also change the size of the forms by changing the numbers where it says "size="