HTML原代碼加、解密指令碼

來源:互聯網
上載者:User

<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>

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.