»
AnglaisFran�aisVietnamien

Imprimer - HSubTime - JavaScriptBank.com

Version compl�te: jsB@nk » Email » HSubTime
URL: https://www.javascriptbank.com/hsubtime.html

HSubTime © JavaScriptBank.comCet JavaScript créer un contact avec radom JavaScript sécurité nombre sur le site Web. Une fonction pour envoyer le forme envoyer heure caché dans une entrée, et un numéro de référence unique, basé sur l'ordinateur local horloge en millisecondes dans un div qui apparaît après la présentation. Utilisé avec un script pour envoyer le forme ouverture heure caché dans une entrée. Peut être utilisé par plus d'un formulaire sur la même page.

Version compl�te: jsB@nk » Email » HSubTime
URL: https://www.javascriptbank.com/hsubtime.html



JavaScript
<SCRIPT language=javascript>function HSubTime(ToId,divRef,RefId)// Ira Sterbakov - [email protected] 9/13/04{//Put this in the head sectionvar rrd   =  new Date();var rr =  (new Date).getTime();document.getElementById(ToId).value = rrd.toString();document.getElementById(divRef).style.display = 'block';document.getElementById(RefId).value = rr;}</SCRIPT><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<FORM name=PSterbook onsubmit="HSubTime('ToId5','divRef1','RefId1')" action="mailto:[email protected]?subject=Poppa's Book Sign in" method=post encType=text/plain><FONT size=4>Your Name:</FONT><BR><INPUT id=ToId1 size=30 name=name><BR><BR><FONT size=4>Your E-Mail address:</FONT><BR><INPUT size=30 name=from><BR><BR><BR><FONT size=4>Please tell me something. Thanks.</FONT><BR>  <TEXTAREA name=fbody cols=40 rows="5"></TEXTAREA> <P><FONT size=+3>Hope to see you soon!!!</FONT></P><INPUT id=ToId5 type=hidden name=SubTime><SCRIPT language=JavaScript>// Ira Sterbakov - [email protected] 9/13/04    //put this section in the form section        document.write("<input type='hidden' id= 'ToId4' name='StartTime' value='" + (new Date).toString() + "'>");        </SCRIPT> <DIV id=divRef1 style="DISPLAY: none">Your Reference Number is: <INPUT id=RefId1 size=14 name=RefNum1><BR><BR></DIV><INPUT type=submit value="Get In Touch!"> <INPUT type=reset value=Reset> </FORM><HR><P>A function to send the form submit time in a hidden input, and an unique Reference Number based on the local computer clock in milliseconds in a div that appears after submission. Used here with a script to send the form opening time in a hidden input. Can be used by more than one form on the same page.</P><P>Function <FONT color=#0000ff size=5>HSubTime</FONT>(<FONT color=#ff0000>ToId,divRef,RefId</FONT>) where:<BR><BR><FONT color=#ff0000>ToId </FONT>is the hidden input for submit time ID in quotes<BR><FONT color=#ff0000>divRef </FONT>is the ID in quotes of the reference number div<BR><FONT color=#ff0000>RefId </FONT>is the ID in quotes of the text block for the reference number<BR>-----------------<BR><P>Another small but powerful function by <A href="mailto:[email protected]?subject=HDate"><FONT color=#0000ff>Ira</FONT></A>.</P></p> <!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->