ryanhouston
10-16-2008, 07:08 AM
Hello Folks ! I eventually found the bit you post in lol. I'm not even to sure if this is the correct section or not im only learning i don't know much all i know is its called javascript lol anyways heres my issue.
PROBLEM
I cannot seem to find information on how to code a piece of java that replaces text with other characters from a text field.
AIM
I aim to get a piece of code that will replace letters that has been entered into a text field after clicking the submit button eg.
say i enter "hello" into the text field and then clicked submit i would like it to then be converted into "нєllo" in the same text field so the text just changes i would like it to do this for every character in the alphabet so that the writing is in a different style thanks if this is possible.
a bit like the code below but that just turns it into capitals and lowercase not changing the characters
2 parts to this script
========================================
place inside head tags
========================================
<script LANGUAGE="JavaScript">
function ChangeMe(form)
{
inputStr=form.Input.value;
UPPERCASE=inputStr.toUpperCase();
lowercase=inputStr.toLowerCase();
form.Upper.value=UPPERCASE;
form.lower.value=lowercase;
}
</script>
=======================================================
place in body where you want the script to be viewed
=======================================================
<!-- -->
<form>Enter text: <input TYPE="text" NAME="Input"><br>
<input TYPE="button" Name="Convert_Button" VALUE="Click to transform to UC and LC" onClick="ChangeMe(this.form)">
<br>UPPERCASE text: <input TYPE="text" NAME="Upper">
<br>lowercase text: <input TYPE="text" NAME="lower">
</form><!-- -->
PROBLEM
I cannot seem to find information on how to code a piece of java that replaces text with other characters from a text field.
AIM
I aim to get a piece of code that will replace letters that has been entered into a text field after clicking the submit button eg.
say i enter "hello" into the text field and then clicked submit i would like it to then be converted into "нєllo" in the same text field so the text just changes i would like it to do this for every character in the alphabet so that the writing is in a different style thanks if this is possible.
a bit like the code below but that just turns it into capitals and lowercase not changing the characters
2 parts to this script
========================================
place inside head tags
========================================
<script LANGUAGE="JavaScript">
function ChangeMe(form)
{
inputStr=form.Input.value;
UPPERCASE=inputStr.toUpperCase();
lowercase=inputStr.toLowerCase();
form.Upper.value=UPPERCASE;
form.lower.value=lowercase;
}
</script>
=======================================================
place in body where you want the script to be viewed
=======================================================
<!-- -->
<form>Enter text: <input TYPE="text" NAME="Input"><br>
<input TYPE="button" Name="Convert_Button" VALUE="Click to transform to UC and LC" onClick="ChangeMe(this.form)">
<br>UPPERCASE text: <input TYPE="text" NAME="Upper">
<br>lowercase text: <input TYPE="text" NAME="lower">
</form><!-- -->