font.html 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <!doctype html public "-//w3c//dtd html 3.2 final//en">
  2. <html>
  3. <head>
  4. <title></title>
  5. <meta name="generator" content="textpad 4.0">
  6. <meta name="author" content="Metrix - www.metrix.de">
  7. <meta name="keywords" content="">
  8. <meta name="description" content="">
  9. </head>
  10. <body background="" marginwidth="0" marginheight="0" topmargin="0" leftmargin="0" bgcolor="#000000" text="#ffffff" link="#ffffff" vlink="#ffffff" alink="#ff00ff">
  11. <center>
  12. <form name="f">
  13. <textarea name="t1" cols="40" rows="10">
  14. </textarea>
  15. <a href="JavaScript:makeit()">make it....</a>
  16. </form>
  17. <script language="JavaScript" type="text/javascript">
  18. function makeit() {
  19. tt=document.forms["f"].t1.value;
  20. document.write('<body bgcolor=#000000>');
  21. for (i=0;i<tt.length;i++) {
  22. if (tt.charCodeAt(i)>64) cc=tt.charAt(i)+"1";
  23. if (tt.charCodeAt(i)>96) cc=tt.charAt(i)+"2";
  24. if (tt.charCodeAt(i)<64) cc=tt.charAt(i);
  25. if (tt.charCodeAt(i)==32) cc="space";
  26. if (tt.charAt(i)=="/") cc="slash";
  27. if (tt.charAt(i)!="\n" && tt.charCodeAt(i)!=13) {
  28. document.write('<img src="'+cc+'.gif">');
  29. } else {
  30. if (tt.charCodeAt(i)!=13) document.write('<br>');
  31. }
  32. }
  33. }
  34. </script>
  35. </center>
  36. </body>
  37. </html>