»
EnglishFrenchVietnamese

Print - Silly Forms Typer Animation - JavaScriptBank.com

Full version: jsB@nk » Utility » Silly Forms Typer Animation
URL: http://www.javascriptbank.com/silly-forms-typer-animation.html

Silly Forms Typer Animation © JavaScriptBank.comNo doubt this is the most silly script ever written (that's why it fits so well into our script-collection). However the script proves that form elements such as textfields must not be as boring as they are.What does the script? First it writes any typed text into a textbox that does not look like a textbox at all (that's CSS-business). Besides the script changes the color of the text permanentely while your visitor is typing. Best of all: the text inside the textbox may be mailed to anybody or to any database. So it's even useful (somehow).The script works best with Internet Explorer 4x. Netscape users will see the old dull textbox.

Full version: jsB@nk » Utility » Silly Forms Typer Animation
URL: http://www.javascriptbank.com/silly-forms-typer-animation.html



JavaScript
<SCRIPT>// Silly Forms Typer Animationvar fontcolors=new Array("green","blue","maroon","red","purple","black","olive")var i_fontcolors=0function setfocus() {document.fontchange.textboxid.focus()}function changefontcolor() {if (i_fontcolors>=fontcolors.length-1) {i_fontcolors=0}document.all.textboxid.style.color=fontcolors[i_fontcolors]i_fontcolors++}if (document.all) {document.onkeydown=changefontcolorwindow.onload=setfocus}</SCRIPT><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<FONT color=black face=Verdana size=2><B>Type any thing at here:</B></FONT> <FORM action=mailto: name=fontchange><TEXTAREA cols=80 id=textboxid rows=4 style="BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px; BORDER-TOP-WIDTH: 0px; FONT-FAMILY: Arial Black; FONT-SIZE: 28px" wrap=VIRTUAL></TEXTAREA> <INPUT type=submit value="mail this text"> </FORM><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->