<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>html源码加密解密脚本</title>
<style type="text/css">
<!--
.coolalpha {behavior:url(eyun_alpha.htc);cursor:hand;filter:alpha(opacity=50);}
-->
</style>
</head><body leftmargin="0" topmargin="0">
<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.text.style.backgroundColor="#DDDDDD";
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 FocusOn(what)
{
if (ie) what.style.backgroundColor = '#EBEBEB';
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='正在加密中,请等待...';
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="<script>\n<!--\ndocument.write(unescape(\""+compilation+"\"));\n//-->\n<\/script>";
i++;
if (i=1) alert("加密用了 1 秒!");
else alert("加密用了 "+i+" 秒!");
}
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><table width="650" border="0" align="center" cellpadding="0" cellspacing="0"><tr>
<td bgcolor="#3568AC"></td>
<td width="87" height="1"></td>
<td width="460" height="1" bgcolor="#3568AC"></td>
<td width="100" height="1"></td>
<td bgcolor="#3568AC"></td>
</tr>
<tr>
<td bgcolor="#3568AC" height="30"></td>
<td height="30" colspan="3"><div align="center"><strong>html源码加密解密脚本</strong></div></td>
<td bgcolor="#3568AC" height="30"></td>
</tr>
<tr>
<td bgcolor="#3568AC"></td>
<td height="296" colspan="3" align="center">
<FORM name=pad method=post align="center">
<TEXTAREA name=text rows=20 cols=80></TEXTAREA>
<BR><BR>
<INPUT onclick=generate() type=button value=加密 name=compileIt>
<INPUT onclick=uncompile() type=button value=解密 name=retur>
<INPUT onclick=preview() type=button value=预览 name=view>
<INPUT onclick=selectCode() type=button value=全选 name=select>
<INPUT type=reset value=清空 name=clear>
</FORM>
</td></body>
</html>
点此转到html加密解密脚本
posted @
2011-08-31 14:12
Mr.Jim
阅读(
525)
评论()
编辑
收藏
举报