Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>Source Code Encrypter</title>
- <style type="text/css">
- a.darklink:link{text-decoration: none; color: white;};
- a.darklink:visited{text-decoration: none; color: white;};
- a.darklink:hover{text-decoration: none; color: aqua;};
- a.menulink:link{text-decoration: none; color: white;};
- a.menulink:visited{text-decoration: none; color: white;};
- a.menulink:hover{text-decoration: none; color: white;};
- a:link {text-decoration: underline; color: black;};
- a:visited{text-decoration: underline; color: red;};
- a:hover{text-decoration: none; color: black;};
- body{
- font-size: 10pt;
- font-family: arial;
- }
- p{
- font-size: 10pt;
- font-family: arial;
- }
- td{
- font-size: 10pt;
- font-family: arial;
- }
- td.header{
- font-size: 16pt;
- font-family: arial;
- color: ffc000;
- }
- h1{
- font-size: 16pt;
- font-family: arial;
- }
- h3{font-family: arial;}
- </style>
- <script language="javascript">
- var i=0;
- var ie=(document.all)?1:0;
- var ns=(document.layers)?1:0;
- function initstyleelements(){
- var c = document.pad;
- if(ie){
- c.compileit.style.backgroundcolor="#c0c0a8";
- c.compileit.style.cursor="hand";
- c.select.style.backgroundcolor="#c0c0a8";
- c.select.style.cursor="hand";
- c.view.style.backgroundcolor="#c0c0a8";
- c.view.style.cursor="hand";
- c.retur.style.backgroundcolor="#c0c0a8";
- c.retur.style.cursor="hand";
- c.clear.style.backgroundcolor="#c0c0a8";
- c.clear.style.cursor="hand";
- }else{return;}
- }
- function lighton(what){if(ie){what.style.backgroundcolor = '#e0e0d0';}else{return;}}
- function focuson(what){if(ie){what.style.backgroundcolor = '#ebebeb';}else{return;}}
- function lightout(what){if(ie){what.style.backgroundcolor = '#c0c0a8';}else{return;}}
- function focusoff(what){if(ie){what.style.backgroundcolor = '#dddddd';}else{return;}}
- function generate(){
- code = document.pad.text.value;
- if(code){
- document.pad.text.value='COMPILING... PLEASE WAIT';
- settimeout("compile()",1000);
- }else{alert('FIRST ENTER SOMETHING TO COMPILE AND THEN PRESS COMPILEIT');}
- }
- function compile(){
- document.pad.text.value='';
- compilation=escape(code);
- document.pad.text.value="<scr"+"ipt>\n\ndocument.write(unescape(\""+compilation+"\"));\n\n<\/script>";
- i++;
- if(i=1){alert("PAGE COMPILED 1 TIME");}else{alert("PAGE COMPILED "+i+" TIMES");}
- }
- function selectcode(){
- if(document.pad.text.value.length>0){
- document.pad.text.focus();
- document.pad.text.select();
- }else{alert('NOTHING FOR BE SELECTED');}
- }
- function preview(){
- if(document.pad.text.value.length>0){
- pr=window.open("","preview","scrollbars=1,menubar=1,status=1,width=700,height=320,left=50,top=110");
- pr.document.write(document.pad.text.value);
- }else{alert('NOTHING FOR BE PREVIEWED');}
- }
- function uncompile(){
- if(document.pad.text.value.length>0){
- source=unescape(document.pad.text.value);
- document.pad.text.value=""+source+"";
- }else{alert('YOU NEED COMPILED CODE TO UNCOMPILE IT');}
- }
- </script>
- </head>
- <body bgcolor="#ffffff" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" link="#000000" vlink="#ff0000">
- <table width="100%" border="0" align="center">
- <tr valign="top">
- <td height="103" style="text-align: center">
- <form method="post" name="pad" align="center">
- <textarea name=text style="background-color:#ebebeb" rows="20" cols="75"></textarea>
- <br><br>
- <input type="button" value="encrypt" name="compileit" onclick="generate()" onmouseover="lighton(this)" onmouseout="lightout(this)">
- <input type="button" value="select" name="select" onclick="selectcode()" onmouseover="lighton(this)" onmouseout="lightout(this)">
- <input type="button" value="preview" name="view" onclick="preview()" onmouseover="lighton(this)" onmouseout="lightout(this)">
- <input type="button" value="source" name="retur" onclick="uncompile()" onmouseover="lighton(this)" onmouseout="lightout(this)">
- <input type="reset" value="clear" name="clear" onmouseover="lighton(this)" onmouseout="lightout(this)">
- </form>
- </td>
- </tr>
- </table>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment