Name Acronym Generator.

Discussion in 'Scripts' started by scottlpool2003, Apr 15, 2007.

  1. #1
    Hi all. I've been after making a name acronym generator. I started making it, but got stuck half way through. I was wondering if anyone knew how to swap a, b, c etc to amazing, brill, cute etc. I have a fancy text generator, maybe I could use the same sort of system. Could somebody please let me know if you have a solution to my problem?

    Here is my fancy text generator:

    <b>Make Your Text Fancy</b>
    <br><br>
    <SCRIPT language=JavaScript>
    var thisString;
    function startText() {
    thisString = document.HackerText.box1.value;
    thisString = thisString.replace(/A/g, "Ä");
    thisString = thisString.replace(/B/g, "ß");
    thisString = thisString.replace(/C/g, "Ç");
    thisString = thisString.replace(/D/g, "Ð");
    thisString = thisString.replace(/E/g, "È");
    thisString = thisString.replace(/F/g, "£");
    thisString = thisString.replace(/I/g, "Ì");
    thisString = thisString.replace(/N/g, "ñ");
    thisString = thisString.replace(/O/g, "Ö");
    thisString = thisString.replace(/P/g, "þ");
    thisString = thisString.replace(/S/g, "§");
    thisString = thisString.replace(/T/g, "†");
    thisString = thisString.replace(/U/g, "Ú");
    thisString = thisString.replace(/X/g, "×");
    thisString = thisString.replace(/Y/g, "Â¥");
    thisString = thisString.replace(/a/g, "Ã¥");
    thisString = thisString.replace(/b/g, "ß");
    thisString = thisString.replace(/c/g, "¢");
    thisString = thisString.replace(/d/g, "Ð");
    thisString = thisString.replace(/e/g, "ê");
    thisString = thisString.replace(/f/g, "£");
    thisString = thisString.replace(/i/g, "ï");
    thisString = thisString.replace(/n/g, "ñ");
    thisString = thisString.replace(/o/g, "ð");
    thisString = thisString.replace(/p/g, "þ");
    thisString = thisString.replace(/s/g, "§");
    thisString = thisString.replace(/t/g, "†");
    thisString = thisString.replace(/u/g, "µ");
    thisString = thisString.replace(/y/g, "Â¥");
    thisString = thisString.replace(/1/g, "¹");
    thisString = thisString.replace(/2/g, "²");
    thisString = thisString.replace(/3/g, "³");
    thisString = thisString.replace(/5/g, "5");
    thisString = thisString.replace(/0/g, "Ø");
    document.HackerText.box2.value=thisString;
    }
    </SCRIPT><br>
    <table border="0" class="content" align="center" width="70%" style="border:2px solid black"><tr>
    <td bgcolor="#3399FF" align="center" style="border:1px solid lightblue"><b>The Work Area</b></td>
    </tr>
    <tr>
    <td bgcolor="beige" align="center">

    <table border="0" class="content"><tr>
    <td>
    <FORM name=HackerText>

    <tr>
    <td><div align="left"><font size="2">Text you want converted: </font></div></td>
    <td><div align="left">
    <INPUT type=textfield size=55 value="Write your text here, then click convert!" name=box1>
    </div></td>
    </tr>

    <tr>
    <td><div align="left"><font size="2">Your converted text:</font></div></td>
    <td><div align="left">
    <INPUT type=textextfield size=55 name=box2 value?Hello?>
    </div></td>
    </tr>

    <tr>
    <td colspan="2" height="1" align="center"><div align="center">
    <INPUT onclick=startText(); type=button value=Convert>
    </div></td>
    </tr>

    </FORM>
    </table>

    </table>

    If you know how I could make the name acronym, it would be very helpful.

    Regards,
    Scott.
     
    scottlpool2003, Apr 15, 2007 IP