?? 7-2 最簡單的加密與解密.htm
字號:
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=GB2312" />
<title>7-2 最簡單的加密與解密</title>
<!-- 樣式表 -->
<style>
* { font-size:12px; font-family:宋體, Arial; font-weight:normal; color:#333; } /*規定了所有的字體樣式*/
textarea { width:100%; height:80px; border:1px solid black; } /*定義多行文本框的樣式*/
</style>
<!-- 腳本部分 -->
<script>
function $(str){ return(document.getElementById(str)); }
</script>
</head>
<body style="overflow:auto;">
請輸入需要加密或解密的內容:<br/>
<textarea id="txt1"></textarea><br/>
<center>
<input type="button" value="加密" onclick="$('txt2').value = escape($('txt1').value);" />
<input type="button" value="解密" onclick="$('txt2').value = unescape($('txt1').value);" />
</center>
結果輸出:<br/>
<textarea id="txt2"></textarea>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -