Javascripts > Misc Javascripts > Backwards Text Converter
Script Title: Backwards Text Converter
Description: Make any text typed by you or a user display backwards. Not very practical, but fun.
Example: Available
Copy the following code into your <HEAD></HEAD> tags.<script language="JavaScript"> <!-- // Script Created By: Brandon D. (aka ro0t) // Free For Use By Anyone And All // As Long As You Keep This Header =) normal = ""; output = ""; form1.output.value = ""; function reverse() { normal = ""; output = ""; form1.output.value = ""; normal = document.form1.txtbox.value; for (i = 0; i < normal.length; i++) { output = normal.charAt(i) + output; form1.output.value = output; } return output; } // --> </script>
Copy the following code between the <BODY></BODY> tags of your html page.<form name="form1"> <table border='1' cellspacing='0' cellpadding='0'> <tr><td width='200' align='center'> <font face='verdana' size='2'> <b>Backwards Text Converter</b><br><Br> <input name="txtbox" type=text size=20 maxlength=20 style='font-family: verdana; font-size: 10px;'> <input name="button" type=button value="Convert!" onClick="reverse()" style='font-family: verdana; font-size: 10px;'> <br> <input name="output" type=text size=20 maxlength=20 style='font-family: verdana; font-size: 10px; width: 190px;'> </td></tr> </table> </form>
Enter your name and email address to have this script sent right to your Inbox for later viewing. First Name Last Name Email