要完成此需要两个步骤
第一步:把如下代码加入到<head>区域中
<SCRIPT language=javascript>
<!--
var Words;
function SetWords(word)
{
Words = escape(word.value);
}
function SetNewWords(form)
{
var NewWords;
NewWords = Words
form.NewWords.value = NewWords;
}
//-->
</SCRIPT>
第二步:把如下代码加入到<body>区域中<br>
<center> <table border=5 bordercolor=#000000 borderlight=green>
<tr>
<td align=center width="500"><font size=5 color=red face="Arial, Helvetica, sans-serif"></font></td>
</tr>
<tr>
<td align=center width=500 height=50>
<FORM METHOD="POST">
<div align="center">
<div align="center"> <font color="#999999"><b><font face="楷体_GB2312" size="3">加密页面源代码脚本</font></b></font></div>
<p>将你的页面源代码粘贴在下面的框内,要包括所有的标签例如html , head, body等。</p>
</div>
<P align="center">
<TEXTAREA NAME="Word" VALUE="" ROWS=7 COLS=50 ONCHANGE="SetWords(this)">
</TEXTAREA>
<P align="center">
<INPUT TYPE=BUTTON ONCLICK="SetNewWords(this.form)"
VALUE="开始转换">
<P align="center">
<TEXTAREA NAME="NewWords" VALUE="" ROWS=7 COLS=50>
</TEXTAREA>
</FORM><p align="center"> 以上是转换好的代码,将他们加入如下脚本的引号""区内,就是加密后的HTML了!
<p>
<font face="Arial, Helvetica, sans-serif"><b><HTML><br>
<HEAD><br>
<SCRIPT LANGUAGE="Javascript"><br>
<!--<br>
var Words =<font color=red>" " </font>//put your cripto code there<br>
function SetNewWords()<br>
{<br>
var NewWords;<br>
NewWords = unescape(Words);<br>
document.write(NewWords);<br>
} <br>
SetNewWords();<br>
// --><br>
</SCRIPT><br>
</HEAD><br>
<BODY><br>
</BODY><br>
</HTML></b></font>
</td></tr>
</table></center>
<br>
<br>
<center>