Advertisement
DarkProgrammer000

Uncle Jim's Javascript Utilities: Deface [fix]

Nov 9th, 2019
680
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 4.18 KB | None | 0 0
  1. <html>
  2.     <head>
  3.         <title>Uncle Jim's Javascript Utilities: CharCode Translator</title>
  4.        
  5.         <script type="text/javascript" src="http://jdstiles.com/java/js/mailpage.js"> </script>
  6.        
  7.         <META NAME="DESCRIPTION" CONTENT="javascript examples with source code">
  8.         <META NAME="KEYWORDS" CONTENT="java, script, javascript, examples, source, code, forms, games">
  9.         <META NAME="AUTHOR" CONTENT="Uncle Jim's Web Site Designs">
  10.         <META http-equiv="imagetoolbar" content="no">
  11.        
  12.         <script type="text/javascript">
  13.         <!--
  14.        
  15.         function stopErrors()
  16.         {
  17.             return true;
  18.         }
  19.  
  20.         window.onerror = stopErrors;
  21.         //--> </script>
  22.        
  23.         <link rel=stylesheet type=text/css href="hs.css">
  24.         <script type="text/javascript">
  25.        
  26.         <!--
  27.         function selectAll(theField)
  28.         {
  29.             var tempval=eval("document."+theField)
  30.             tempval.focus()
  31.             tempval.select()
  32.         } //-->
  33.         </script>
  34.    
  35.         <script type="text/javascript">
  36.         <!-- defaultStatus = "Uncle Jims Website Designs http://jdstiles.com"//-->
  37.         </script>
  38.        
  39.         <script type="text/javascript">
  40.         <!--
  41.         /*
  42.          ______________________________________________________
  43.         /¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯\
  44.         |          Another JavaScript from Uncle Jim           |
  45.         |                                                      |
  46.         |   Feel free to copy, use and change this script as   |
  47.         |        long as this part remains unchanged.          |
  48.         |                                                      |
  49.         |      Visit my website at http://www.jdstiles.com     |
  50.         |           for more scripts like this one             |
  51.         |                                                      |
  52.         |                     Created: 1996                    |
  53.         |              Last Updated: December, 2005            |
  54.         \______________________________________________________/
  55.          ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
  56.         */
  57.  
  58.         function runFromCharCode()
  59.         {
  60.             input = document.fromCharCode.input.value;
  61.                
  62.             //alert(input);
  63.             output = eval("String.fromCharCode(" + input + ")");
  64.    
  65.             //alert(output);
  66.             document.fromCharCode.output.value = output;
  67.         }
  68.  
  69.         function runCharCodeAt()
  70.         {
  71.             input = document.charCodeAt.input.value;
  72.            
  73.             //alert(input);
  74.             output = "";
  75.            
  76.             for( i=0; i<input.length; ++i )
  77.             {
  78.                 if(output != "") output += ", ";
  79.                 output += input.charCodeAt(i);
  80.             }
  81.            
  82.             //alert(output);
  83.             document.charCodeAt.output.value = output;
  84.         }//-->
  85.         </script>
  86.  
  87.     </head>
  88.  
  89. <BODY>
  90.     <center>
  91.         <h2>Uncle Jim's Web Designs</h2>
  92.         <h4>Javascript Utilities</h4>
  93.         <h3>CharCode Translator</h3>
  94.         Author: <a href="http://jdstiles.com/">Jim Stiles</a>
  95.     </center>
  96.    
  97.     <blockquote> <blockquote>
  98.         <p align="justify">This is a page that demonstrates the JavaScript charCodeAt() and fromCharCode()
  99.         functions that I use. Type character numbers separated by commas in the first box, hit the first
  100.         button and see the character equivalents in the second. Paste, or type, characters into the third,
  101.         hit the second button, and see the character number codes in the last.</p>
  102.     </blockquote> </blockquote>
  103.  
  104.     <center>
  105.         <FORM NAME=fromCharCode>
  106.             <TEXTAREA ROWS=4 COLS=30 NAME=input>85, 110, 99, 108, 101, 32, 74, 105, 109 </TEXTAREA>
  107.             <INPUT TYPE=Button VALUE="fromCharCode()" onClick="runFromCharCode()">
  108.             <TEXTAREA ROWS=4 COLS=30 NAME=output></TEXTAREA>
  109.         </FORM> <HR>
  110.  
  111.         <FORM NAME=charCodeAt>
  112.             <TEXTAREA ROWS=4 COLS=30 NAME=input>Web Designs</TEXTAREA>
  113.             <INPUT TYPE=Button VALUE="  charCodeAt()  " onClick="runCharCodeAt()">
  114.             <TEXTAREA ROWS=4 COLS=30 NAME=output></TEXTAREA>
  115.         </FORM> <HR>
  116.  
  117.         <FORM NAME=string>
  118.             <TEXTAREA ROWS=2 COLS=85 NAME=input>
  119.             <script language=javascript>eval(String.fromCharCode(PLACE CharCode HERE ))</script>
  120.             </TEXTAREA>
  121.         </FORM>
  122.     </center>
  123.  
  124.     <center>
  125.         <A HREF="javascript:mailpage()">Send this page to someone</A>
  126.     </center> <br> <br>
  127.    
  128.     <center>
  129.         <script src="http://jdstiles.com/xmenu.js" type="text/javascript"></script><br>
  130.         <a href="javascript:window.close();"><b><i>Close This Window</i></b></a>
  131.     </center> <br> <br>
  132. </BODY>
  133.  
  134. </HTML>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement