<div class="htmlarea"><textarea id="runcode22391"> <script language="Javascript"> var classObj= { ToUnicode:function(str) { return escape(str).replace(/%/g,"\\").toLowerCase(); }, UnUnicode:function(str) { return unescape(str.replace(/\\/g, "%")); }, copyingTxt:function(str) { document.getElementById(str).select(); document.execCommand("Copy"); } } </script> <textarea id="codes" style="width:500px;height:300px"><br><br> <input type="button" value="Unicode加密" onclick="javascript:codes.value=classObj.ToUnicode(codes.value)"> <input type="button" value="Unicode解密" onclick="javascript:codes.value=classObj.UnUnicode(codes.value)"> <input type="button" value="复制上面文本" onclick='javascript:classObj.copyingTxt("codes")'> <input type="button" value="清空上面内容" onclick='javascript:codes.value=""'> </textarea><br><input onclick="runEx('runcode22391')" type="button" value="运行代码"> <input onclick="doCopy('runcode22391')" type="button" value="复制代码"> <input onclick="doSave(runcode22391)" type="button" value="保存代码">[Ctrl+A 全选 注:<a href="http://www.jb51.net/article/23421.htm" title="查看具体详情" target="_blank">如需引入外部Js需刷新才能执行</a>]</textarea></div>