KONVERZIA RETAZCA

ID
Nazov / Name:
Popis / Description:
Dlzka / Length:
Testovane pod / Tested under:

 

178
p178.html / p178.zip
Prevadza zadany text na velke a male pismena
1356b
NN 4.04, IE 4.0

UKAZKA / CLICK HERE

Zdrojovy tvar / Source code:

<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1250"> <title>JavaScript DESTINATION - P178</title> <script language="JavaScript"> <!-- var small='áäèïéíåµòóô๻úý'; var big='ÁÄÈÏÉÍÅ¥ÒÓÔÀ©«ÚÝ'; function to_small(kluc) { var kluc_s="",pom; kluc=kluc.toLowerCase(); for(pom=0;pom<kluc.length;pom++) if(big.indexOf(kluc.charAt(pom))!=-1) kluc_s=kluc_s+small.charAt(big.indexOf(kluc.charAt(pom))); else kluc_s=kluc_s+kluc.charAt(pom); return(kluc_s); } function to_big(kluc) { var kluc_b="",pom; kluc=kluc.toUpperCase(); for(pom=0;pom<kluc.length;pom++) if(small.indexOf(kluc.charAt(pom))!=-1) kluc_b=kluc_b+big.charAt(small.indexOf(kluc.charAt(pom))); else kluc_b=kluc_b+kluc.charAt(pom); return(kluc_b); } function vykonaj() { document.formular.sm.value= to_small(document.formular.kluc.value); document.formular.bi.value= to_big(document.formular.kluc.value); } //--> </script> </head> <body> <form method="POST" name="formular"> <p>Zadaj re»azec:</p> <p><input type="text" name="kluc" size="40"> <input type="button" value="Vykonaj" name="butt" onclick="vykonaj()"></p> <hr size="1"> Re»azec z malých písmen<br> <input type="text" name="sm" size="40"><br> Re»azec z velkých písmen<br> <input type="text" name="bi" size="40"><br> </form> </body> </html>
[ Navrat / BACK ]