manman89

HTML SOURCE CODE ENCRYPTER

Nov 23rd, 2012
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 4.17 KB | None | 0 0
  1. <html>
  2. <head>
  3.     <title>Source Code Encrypter</title>
  4.     <style type="text/css">
  5.         a.darklink:link{text-decoration: none; color: white;};
  6.         a.darklink:visited{text-decoration: none; color: white;};
  7.         a.darklink:hover{text-decoration: none; color: aqua;};
  8.         a.menulink:link{text-decoration: none; color: white;};
  9.         a.menulink:visited{text-decoration: none; color: white;};
  10.         a.menulink:hover{text-decoration: none; color: white;};
  11.         a:link {text-decoration: underline; color: black;};
  12.         a:visited{text-decoration: underline; color: red;};
  13.         a:hover{text-decoration: none; color: black;};
  14.         body{
  15.             font-size: 10pt;
  16.             font-family: arial;
  17.         }
  18.         p{
  19.             font-size: 10pt;
  20.             font-family: arial;
  21.         }
  22.         td{
  23.             font-size: 10pt;
  24.             font-family: arial;
  25.         }
  26.         td.header{
  27.             font-size: 16pt;
  28.             font-family: arial;
  29.             color: ffc000;
  30.         }
  31.         h1{
  32.             font-size: 16pt;
  33.             font-family: arial;
  34.         }
  35.         h3{font-family: arial;}
  36.     </style>
  37.     <script language="javascript">
  38.         var i=0;
  39.         var ie=(document.all)?1:0;
  40.         var ns=(document.layers)?1:0;
  41.         function initstyleelements(){
  42.             var c = document.pad;
  43.             if(ie){
  44.                 c.compileit.style.backgroundcolor="#c0c0a8";
  45.                 c.compileit.style.cursor="hand";
  46.                 c.select.style.backgroundcolor="#c0c0a8";
  47.                 c.select.style.cursor="hand";
  48.                 c.view.style.backgroundcolor="#c0c0a8";
  49.                 c.view.style.cursor="hand";
  50.                 c.retur.style.backgroundcolor="#c0c0a8";
  51.                 c.retur.style.cursor="hand";
  52.                 c.clear.style.backgroundcolor="#c0c0a8";
  53.                 c.clear.style.cursor="hand";
  54.             }else{return;}
  55.         }
  56.         function lighton(what){if(ie){what.style.backgroundcolor = '#e0e0d0';}else{return;}}
  57.         function focuson(what){if(ie){what.style.backgroundcolor = '#ebebeb';}else{return;}}
  58.         function lightout(what){if(ie){what.style.backgroundcolor = '#c0c0a8';}else{return;}}
  59.         function focusoff(what){if(ie){what.style.backgroundcolor = '#dddddd';}else{return;}}
  60.         function generate(){
  61.             code = document.pad.text.value;
  62.             if(code){
  63.                 document.pad.text.value='COMPILING... PLEASE WAIT';
  64.                 settimeout("compile()",1000);
  65.             }else{alert('FIRST ENTER SOMETHING TO COMPILE AND THEN PRESS COMPILEIT');}
  66.         }
  67.         function compile(){
  68.             document.pad.text.value='';
  69.             compilation=escape(code);
  70.             document.pad.text.value="<scr"+"ipt>\n\ndocument.write(unescape(\""+compilation+"\"));\n\n<\/script>";
  71.             i++;
  72.             if(i=1){alert("PAGE COMPILED 1 TIME");}else{alert("PAGE COMPILED "+i+" TIMES");}
  73.         }
  74.         function selectcode(){
  75.             if(document.pad.text.value.length>0){
  76.             document.pad.text.focus();
  77.             document.pad.text.select();
  78.             }else{alert('NOTHING FOR BE SELECTED');}
  79.         }
  80.         function preview(){
  81.             if(document.pad.text.value.length>0){
  82.             pr=window.open("","preview","scrollbars=1,menubar=1,status=1,width=700,height=320,left=50,top=110");
  83.             pr.document.write(document.pad.text.value);
  84.             }else{alert('NOTHING FOR BE PREVIEWED');}
  85.         }
  86.         function uncompile(){
  87.             if(document.pad.text.value.length>0){
  88.             source=unescape(document.pad.text.value);
  89.             document.pad.text.value=""+source+"";
  90.             }else{alert('YOU NEED COMPILED CODE TO UNCOMPILE IT');}
  91.         }
  92.     </script>
  93. </head>
  94. <body bgcolor="#ffffff" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" link="#000000" vlink="#ff0000">
  95.     <table width="100%" border="0" align="center">
  96.         <tr valign="top">
  97.             <td height="103" style="text-align: center">  
  98.                 <form method="post" name="pad" align="center">
  99.                     <textarea name=text style="background-color:#ebebeb" rows="20" cols="75"></textarea>
  100.                     <br><br>
  101.                     <input type="button" value="encrypt" name="compileit" onclick="generate()" onmouseover="lighton(this)" onmouseout="lightout(this)">
  102.                     <input type="button" value="select" name="select" onclick="selectcode()" onmouseover="lighton(this)" onmouseout="lightout(this)">
  103.                     <input type="button" value="preview" name="view" onclick="preview()" onmouseover="lighton(this)" onmouseout="lightout(this)">
  104.                     <input type="button" value="source" name="retur" onclick="uncompile()" onmouseover="lighton(this)" onmouseout="lightout(this)">
  105.                     <input type="reset" value="clear" name="clear" onmouseover="lighton(this)" onmouseout="lightout(this)">
  106.                 </form>
  107.             </td>
  108.         </tr>
  109.     </table>
  110. </body>
  111. </html>
Advertisement
Add Comment
Please, Sign In to add comment