1.
1 <%@ page language="java" contentType="text/html; charset=UTF-8" 2 pageEncoding="UTF-8"%> 3 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 4 <html xmlns="http://www.w3.org/1999/xhtml" > 5 <head> 6 <title>无标题页</title> 7 <SCRIPT language=javascript> 8 var Words; 9 function SetWords(word) //加密当前文本 10 { 11 Words = escape(word.value);//加密的主要方法 12 } 13 function SetNewWords(form) //加密当前窗体 14 { 15 var NewWords; 16 NewWords = Words 17 form.NewWords.value = NewWords; 18 } 19 </SCRIPT> 20 21 </head> 22 <body > 23 <FORM METHOD="POST"> 24 <div align="center"> 25 <div align="center"> 26 <font color="#0066FF">加密页面源代码脚本</font></div> 27 <p>将你的页面源代码粘贴在下面的框内,要包括所有的标签例如html , head, body等。</p> 28 </div> 29 <P align="center"> 30 <TEXTAREA NAME="Word" VALUE="" ROWS=7 COLS=50 ONCHANGE="SetWords(this)"> 31 </TEXTAREA> 32 <P align="center"> 33 <INPUT TYPE=BUTTON ONCLICK="SetNewWords(this.form)" 34 VALUE="开始转换"> 35 36 <P align="center"> 37 <TEXTAREA NAME="NewWords" VALUE="" ROWS=7 COLS=50> 38 </TEXTAREA> 39 </FORM> 40 </body> 41 </html>
浙公网安备 33010602011771号