<HTML>
<HEAD>
<p><center><font color="white"><b>▶ </b></font>
<a href="http://korea.internet.com/channel/list.asp?cid=189&zid=12"><b>코리아인터넷닷컴 자바스크립트 소스/예제 모음</b></a></center><p>
<br><br>

<table width="100%" height="30%" border="0" cellspacing="0" cellpadding="0" align="center"><tr>
<td align="center" valign="middle">
<font face="Verdana" size="2" color="#000000">

<!--- Javascript Start Here ---->

<script LANGUAGE="JavaScript">
<!--
var letters = 'ghijklabvwxyzABCDEFef)_+|<>?:mnQRSTU~!@#$%^VWXYZ`1234567opGHIJKLu./;'+"'"+'[]MNOP890-='+'\\'+'&*("{},cdqrst '+"\n";var split = letters.split("");var num = '';var c = '';var encrypted = '';function encrypt(it){var b = '0';var chars = it.split("");while(b<it.length) {c = '0';while(c<letters.length){if(split[c] == chars[b]){if(c == "0") { c = ""; }if(eval(c+10) >= letters.length){num = eval(10-(letters.length-c));encrypted += split[num];}else{num = eval(c+10);encrypted += split[num];}}c++;}b++;}document.forms[0].data.value = encrypted;encrypted = '';}function decrypt(it){var b = '0';var chars = it.split("");while(b<it.length){c = '0';while(c<letters.length){if(split[c] == chars[b]){if(c == "0") { c = ""; }if(eval(c-10) < 0){num = eval(letters.length-(10-c));encrypted += split[num];}else{num = eval(c-10);encrypted += split[num];}}c++;}b++;}document.forms[0].data.value = encrypted;encrypted = '';}
// -->
</script>
>
<INPUT TYPE="TEXT" SIZE="50" NAME="data" STYLE="border: 1px solid"><BR><BR>
<INPUT TYPE="BUTTON" VALUE="Encode" ="encrypt(document.forms[0].data.value)">
<INPUT TYPE="BUTTON" VALUE="Decode" ="decrypt(document.forms[0].data.value)">
</

<!--- Javascript End Here ---->

</font>
</td>
</tr></table>
<br><br>
<p align="center"><a href="/channel/content.asp?kid=13&nid=19135#test"><img src="/images/w_list3.gif" border="0"></a></p>
</body>
</html>
Posted by 퓨전마법사
,