建站教学网,让你建站更便捷和轻松!
您当前的位置:首页 > 网页制作 > html/xhtml

HTML原代码加、解密脚本

来源:建站教学网  时间:2010-10-24 10:22:43

一款简单的html原代码加、解密脚本哦,他加密后一串让人看不懂的字符器,解密后就是一段正常的html代码。

<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=gb2312">
<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=网页特效><!--
var i=0;
var ie=(document.all)?1:0;
var ns=(document.layers)?1:0;
function initstyleelements() /* styles for buttons init */
{
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;
}
/* buttons enlightment of "compilation" panel */

function focuson(what)
{
if (ie) what.style.backgroundcolor = '#ebebeb';
else return;
}

function focusoff(what)
{
if (ie) what.style.backgroundcolor = '#dddddd';
else return;
}
/* buttons enlightment of "compilation" panel */
function generate() /* generation of "compilation" */
{
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() /* the "compilation" */
{
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("page compiled 1 time!");
else alert("page compiled "+i+" times!");
}
function selectcode() /* selecting "compilation" for copying */
{
if(document.pad.text.value.length>0)
{
document.pad.text.focus();
document.pad.text.select();
}
else alert('nothing for be selected!')
}
function preview() /* preview for the "compilation" */
{
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() /* decompiling a "compilation" */
{
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" class="cn"><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" class="gp">
<form name=pad method=post align="center">
<textarea name=text rows=11 cols=50></textarea>
<br><br>
<input  onclick=generate()  type=button value=加密 name=compileit>
&nbsp;
<input  onclick=selectcode()  type=button value=全选 name=select>
&nbsp;
<input  onclick=preview()  type=button value=预览 name=view>
&nbsp;
<input  onclick=uncompile()  type=button value=解密 name=retur>
&nbsp;
<input   type=reset value=清除 name=clear></form>
 </td>
    <td bgcolor="#3568ac"></td>
  </tr>
  <tr>
    <td bgcolor="#3568ac" height="6"></td>
    <td height="8" colspan="3" class="cn"></td>
    <td bgcolor="#3568ac" height="6"></td>
  </tr>
  <tr>
    <td bgcolor="#3568ac"></td>
    <td colspan="3" align="center"> <input type="button" name="submit2" value="关闭窗口" onclick="window.close()" style="cursor:hand"

onfocus="if(this.blur)this.blur()">
    </td>
    <td bgcolor="#3568ac"></td>
  </tr>
  <tr>
    <td bgcolor="#3568ac" height="6"></td>
    <td height="8" colspan="3" class="cn"></td>
    <td bgcolor="#3568ac" height="6"></td>
  </tr>
</table>

</body>
</html>

责任编辑:风中的自由

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表
CopyRight 2008-2009, JZREAD.COM, Inc. All Rights Reserved
皖ICP备09015033号