将文本内容转译成加密文本,在某些情况下还是比较实用的,下面通过js简单实现下,感兴趣的朋友不要错过
复制代码 代码如下: <SCRIPT language=JavaScript> <!-- var Words; function SetWords(word) { Words = word.value; }
function SetNewWords(form) { var NewWords; NewWords = unescape(Words); form.NewWords.value = NewWords; } function SetNewWords1(form) { var NewWords; NewWords = escape(Words); form.NewWords.value = NewWords; } // --> </SCRIPT> <body> <table align=center> <TR> <form method=post> <TD align=center>