Full version: jsB@nk » Funny » These textfields must be crazy
URL: https://www.javascriptbank.com/these-textfields-must-be-crazy.html
Would you like to drive your visitors crazy? Our two nutty textfields will do the job for you
Full version: jsB@nk » Funny » These textfields must be crazy
URL: https://www.javascriptbank.com/these-textfields-must-be-crazy.html
<SCRIPT><!-- Beginning of JavaScript -// These two textfields must be crazyfocusleft=truefocusright=falsefunction dofocusleft() {focusleft=truefocusright=null}function dofocusright() {focusleft=nullfocusright=true}function rightfieldvalue() {if (focusleft) {document.nutsform.rightfield.value+=document.forms[0].leftfield.valuedocument.nutsform.leftfield.value=""var timer=setTimeout("rightfieldvalue()",100)}else {clearTimeout(timer)leftfieldvalue()}}function leftfieldvalue() {if (focusright) {document.nutsform.leftfield.value+=document.nutsform.rightfield.valuedocument.nutsform.rightfield.value=""var timer=setTimeout("leftfieldvalue()",100)}else {clearTimeout(timer)rightfieldvalue()}}// - End of JavaScript - --></SCRIPT><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->
<BODY onload=rightfieldvalue()><FORM name=nutsform><TABLE border=2 cellPadding=2 width=400> <TBODY> <TR> <TD align=middle bgColor=#ff0000 vAlign=center><FONT color=#ffffff face=Arial size=2><B>First type here</B><BR><INPUT name=leftfield onfocus=dofocusleft() size=30> </FONT></TD> <TD align=middle bgColor=#ff0000 vAlign=center><FONT color=#ffffff face=Arial size=2><B>Then type here</B><BR><INPUT name=rightfield onfocus=dofocusright() size=30> </FONT></TD></TR></TBODY></TABLE></FORM></BODY><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->