<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>
<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>
'JavaScript' 카테고리의 다른 글
이미지 값 카운트만큼 작업하기 (0) | 2005.11.28 |
---|---|
브라우저상에서 마우스로 이미지 크기를 마음대로 조절해 보자!! (0) | 2005.11.13 |
키워드 덩리 (0) | 2005.09.27 |
주민번호,외국인번호,사업자번호 체크 Script (0) | 2005.09.27 |
숫자를 한글로 변환 (0) | 2005.09.27 |