加密页面代码生成器

  1<html>
  2<!-- #BeginTemplate "/Templates/Js.dwt" -->
  3<head>
  4<!-- #BeginEditable "doctitle" -->
  5<title>加密页面代码生成器 </title>
  6<!-- #EndEditable -->
  7<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
  8<link href="/fav.ico" rel="shortcut icon"/>
  9<style type="text/css">BODY {   
 10MARGIN: 25px 25px 25px   
 11}   
 12#all TD {   
 13FONT-SIZE: 12px; LINE-HEIGHT: 15px; FONT-FAMILY: "Verdana", "Arial","新宋体", "宋体"   
 14}   
 15INPUT {   
 16FONT-SIZE: 12px; LINE-HEIGHT: 15px; FONT-FAMILY: "Verdana", "Arial","新宋体", "宋体"   
 17}   
 18SELECT {   
 19FONT-SIZE: 12px; LINE-HEIGHT: 15px; FONT-FAMILY: "Verdana", "Arial","新宋体", "宋体"   
 20}   
 21P {   
 22FONT-SIZE: 12px; LINE-HEIGHT: 15px; FONT-FAMILY: "Verdana", "Arial","新宋体", "宋体"   
 23}   
 24TEXTAREA {   
 25FONT-SIZE: 12px; LINE-HEIGHT: 15px; FONT-FAMILY: "Verdana", "Arial","新宋体", "宋体"   
 26}   
 27  
 28#all A:active {   
 29COLOR: #7d070c   
 30}   
 31#all A:visited {   
 32COLOR: #7d070c   
 33}   
 34  
 35#all A:hover {   
 36COLOR: #336699   
 37}   
 38#all A:link {   
 39COLOR: #7d070c   
 40}   
 41</style>
 42<script language="JavaScript">   
 43<!--   
 44  
 45function MM_goToURL() { //v3.0   
 46var i, args=MM_goToURL.arguments; document.MM_returnValue = false;   
 47for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");   
 48}   
 49function JM_cc(ob){   
 50var obj=MM_findObj(ob); if (obj) {   
 51obj.select();js=obj.createTextRange();js.execCommand("Copy");}   
 52}   
 53  
 54function MM_findObj(n, d) { //v4.0   
 55var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {   
 56d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}   
 57if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];   
 58for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);   
 59if(!x && document.getElementById) x=document.getElementById(n); return x;   
 60}   
 61//-->   
 62</script>
 63<meta content="MSHTML 5.50.4134.600" name="GENERATOR"/>
 64</head>
 65<body bgcolor="#336699" id="all" text="#000000">
 66<table border="0" cellpadding="0" cellspacing="0" width="100%">
 67<tr bgcolor="#ffffff">
 68<td><img height="14" src="/images/sq_1.gif" width="11"/></td>
 69<td width="100%"></td>
 70<td><img height="14" src="/images/sq_2.gif" width="11"/></td>
 71</tr>
 72</table>
 73<table border="0" cellpadding="0" cellspacing="0" width="100%">
 74<tr bgcolor="#ffffff">
 75<td><img height="1" src="/images/space.gif" width="11"/></td>
 76<td width="100%">
 77<table border="0" cellpadding="8" width="100%">
 78<tr>
 79<td align="center">
 80<script language="JavaScript">   
 81document.write("<font color=#7d070c style=\"font-size: 14px\">"+document.title+"</font>");   
 82</script>
 83</td>
 84</tr>
 85<tr>
 86<td bgcolor="#f7f7f7"><!-- #BeginEditable "example" --><font face="Verdana">提示:</font>   
 87把你想加密的文档的源代码拷贝到下面的文本框内,按下生成按钮就可以得到一段加密了的页面代码,把代码复制到新的页面就可以了. [注意:可重复加密啊!]   
 88<script language="JavaScript">   
 89<!--   
 90//////////////////////////////////////////////////////////////////   
 91// Source Code Encrypter v1.0 //   
 92//////////////////////////////////////////////////////////////////   
 93// //   
 94// This JavaScript can be freely used as long as this message //   
 95// stays here in the header of the script. Any modifications //   
 96// and bugs found (and fixed) are appreciated. //   
 97// Script submitted/featured on Dynamicdrive.com //   
 98// Visit http://www.dynamicdrive.com for source code //   
 99// Svetlin Staev, [email protected] //   
100//////////////////////////////////////////////////////////////////   
101  
102var i=0;   
103var ie=(document.all)?1:0;   
104var ns=(document.layers)?1:0;   
105  
106function initStyleElements() /* Styles for Buttons Init */   
107{   
108var c = document.pad;   
109if (ie)   
110{   
111//c.text.style.backgroundColor="#DDDDDD";   
112c.compileIt.style.backgroundColor="#C0C0A8";   
113c.compileIt.style.cursor="hand";   
114c.select.style.backgroundColor="#C0C0A8";   
115c.select.style.cursor="hand";   
116c.view.style.backgroundColor="#C0C0A8";   
117c.view.style.cursor="hand";   
118c.retur.style.backgroundColor="#C0C0A8";   
119c.retur.style.cursor="hand";   
120c.clear.style.backgroundColor="#C0C0A8";   
121c.clear.style.cursor="hand";   
122}   
123else return;   
124}   
125  
126/* Buttons Enlightment of "Compilation" panel */   
127function LightOn(what)   
128{   
129if (ie) what.style.backgroundColor = '#E0E0D0';   
130else return;   
131}   
132function FocusOn(what)   
133{   
134if (ie) what.style.backgroundColor = '#EBEBEB';   
135else return;   
136}   
137function LightOut(what)   
138{   
139if (ie) what.style.backgroundColor = '#C0C0A8';   
140else return;   
141}   
142function FocusOff(what)   
143{   
144if (ie) what.style.backgroundColor = '#DDDDDD';   
145else return;   
146}   
147/* Buttons Enlightment of "Compilation" panel */   
148  
149function generate() /* Generation of "Compilation" */   
150{   
151code = document.pad.text.value;   
152if (code)   
153{   
154document.pad.text.value='正在生成加密代码,请稍后!';   
155setTimeout("compile()",1000);   
156}   
157else alert('请输入源文件代码')   
158}   
159function compile() /* The "Compilation" */   
160{   
161document.pad.text.value='';   
162compilation=escape(code);   
163document.pad.text.value="<script>\n<!--\ndocument.write(unescape(\""+compilation+"\"));\n//-->\n<\/script>";   
164i++;   
165alert("页面被加密了 "+i+" 次!");   
166}   
167function selectCode() /* Selecting "Compilation" for Copying */   
168{   
169if(document.pad.text.value.length>0)   
170{   
171document.pad.text.focus();   
172document.pad.text.select();   
173}   
174else alert('没有可以选择的文本内容!')   
175}   
176function preview() /* Preview for the "Compilation" */   
177{   
178if(document.pad.text.value.length>0)   
179{   
180pr=window.open("","Preview","scrollbars=1,menubar=1,status=1,width=700,height=320,left=50,top=110");   
181pr.document.write(document.pad.text.value);   
182}   
183else alert('没有可以预浏览的文本内容!')   
184}   
185function uncompile() /* Decompiling a "Compilation" */   
186{   
187if (document.pad.text.value.length>0)   
188{   
189source=unescape(document.pad.text.value);   
190document.pad.text.value=""+source+"";   
191}   
192else alert('你需要生成被加密的代码后才能取回源代码!')   
193}   
194// -->   
195</script>
196<table border="0" cellpadding="0" cellspacing="0" width="100%">
197<tbody>
198<tr>
199<td width="100%">
200<form align="center" method="post" name="pad">
201<textarea cols="58" name="text" rows="21" style="WIDTH: 100%; BACKGROUND-COLOR: #ebebeb"></textarea>
202<br/>
203<input name="compileIt" onclick="generate()" onmouseout="LightOut(this)" onmouseover="LightOn(this)" type="button" value="加密代码"/>
204<input name="select" onclick="selectCode()" onmouseout="LightOut(this)" onmouseover="LightOn(this)" type="button" value="全选代码"/>
205<input name="view" onclick="preview()" onmouseout="LightOut(this)" onmouseover="LightOn(this)" type="button" value="预浏览页面"/>
206<input name="retur" onclick="uncompile()" onmouseout="LightOut(this)" onmouseover="LightOn(this)" type="button" value="原代码"/>
207<input name="clear" onmouseout="LightOut(this)" onmouseover="LightOn(this)" type="reset" value="清空"/>
208</form>
209</td>
210</tr>
211</tbody>
212</table>
213<!-- #EndEditable --></td>
214</tr>
215<tr>
216<td><!-- #BeginEditable "code" --><br/>
217<form action="" method="post" name="form1">
218</form>
219<!-- #EndEditable --></td>
220</tr>
221</table>
222</td>
223<td><img height="1" src="/images/space.gif" width="11"/></td>
224</tr>
225</table>
226<table border="0" cellpadding="0" cellspacing="0" width="100%">
227<tr bgcolor="#ffffff">
228<td><img height="14" src="/images/sq_3.gif" width="11"/></td>
229<td width="100%"></td>
230<td><img height="14" src="/images/sq_4.gif" width="11"/></td>
231</tr>
232</table>
233</body>
234<!-- #EndTemplate -->
235</html>
Published At
Categories with Web编程
Tagged with
comments powered by Disqus