웹사이트 관련 팁들을 모아놓은 곳입니다. 좋은팁 공유 합시다.
  • 웹미니 한줄 전광판 영역 입니다.
글 수 186

12

조회 수 : 3687 신고 : 0

profile
작성자 : title: [ani]깜빡이는 표정빽짱구
포인트 : 56933 | 레벨 : 25
<html>
<head>
<title>암호화</title>
</head>
<body onload="initStyleElements();">
<!--<BODY> 부분에 아래 스크립트를 붙여 넣으세요 -->
<script language="JavaScript">
<!--
var i=0;
var ie=(document.all)?1:0;
var ns=(document.layers)?1:0;

function initStyleElements()
       {
               var c = document.pad;
               if (ie)
                       {
                               c.compileIt.style.backgroundColor="#C0C0C0";
                               c.compileIt.style.cursor="hand";
                               c.select.style.backgroundColor="#C0C0C0";
                               c.select.style.cursor="hand";
                               c.view.style.backgroundColor="#C0C0C0";
                               c.view.style.cursor="hand";
                               c.retur.style.backgroundColor="#C0C0C0";
                               c.retur.style.cursor="hand";
                               c.clear.style.backgroundColor="#C0C0C0";
                               c.clear.style.cursor="hand";
                       }
               else return;
       }

function LightOn(what)
       {
               if (ie) what.style.backgroundColor = '#F7f7f7';
               else return;
       }
function FocusOn(what)
       {
               if (ie) what.style.backgroundColor = '#EBEBEB';
               else return;
       }
function LightOut(what)
       {
               if (ie) what.style.backgroundColor = '#C0C0C0';
               else return;
       }
function FocusOff(what)
       {
               if (ie) what.style.backgroundColor = '#DDDDDD';
               else return;
       }

function generate()
       {
               code = document.pad.text.value;
               if (code)
                       {
                               document.pad.text.value='암호화 중입니다...기다려 주세요!';
                               setTimeout("compile()",1000);
                       }
               else alert('암호화할 내용을 넣어주세요')
       }
function compile()
       {
               document.pad.text.value='';
               compilation=escape(code);
               document.pad.text.value="<script>n<!--ndocument.write(unescape(""+compilation+""));n//-->n</script>";
               i++;
               if (i=1) alert("1회 암호화 되었습니다");
               else alert("페이지가 "+i+" 회 암호화 되었습니다");
       }
function selectCode()
       {
               if(document.pad.text.value.length>0)
                       {
                               document.pad.text.focus();
                               document.pad.text.select();
                       }
               else alert('선택해 주세요')
       }
function preview()
       {
               if(document.pad.text.value.length>0)
                       {
                               pr=window.open("","미리보기","scrollbars=1,menubar=1,status=1,width=700,height=320,left=50,top=110");
                               pr.document.write(document.pad.text.value);
                       }
               else alert('미리보기 할것이 없네요.')
       }
function uncompile()
       {
               if (document.pad.text.value.length>0)
                       {
                               source=unescape(document.pad.text.value);
                               document.pad.text.value=""+source+"";
                       }
               else alert('암호화된 코드가 필요 합니다')
       }

//-->
</script>

<p> </p>
<p> </p>
<p> </p>
<table cellspacing="0" cellpadding="0" width="500" align="center" border="0">
<tbody>
<tr>
<td width="100%" height="297">
<form name="pad" method="post" align="center">
                <p align="center"><textarea style="background-color:rgb(246,246,246); width:95%;" name="text" rows="16" cols="62">암호화 시킬 소스를 여기에 넣으신다음에 "암호화"를 누르시면..

html소스가 암호화가 됩니다..^^</textarea><br>
                <br><input onmouseover="LightOn(this)" onclick="generate()" onmouseout="LightOut(this)" type="button" value="암호화" name="compileIt" style="font-family:굴림; font-size:9pt;" onfocus="this.blur()">
                  <input onmouseover="LightOn(this)" onclick="selectCode()" onmouseout="LightOut(this)" type="button" value="전체선택" name="select" style="font-size:9pt;" onfocus="this.blur()">   <input onmouseover="LightOn(this)" onclick="preview()" onmouseout="LightOut(this)" type="button" value="미리보기" name="view" style="font-size:9pt;" onfocus="this.blur()">
                  <input onmouseover="LightOn(this)" onclick="uncompile()" onmouseout="LightOut(this)" type="button" value="소스복귀" name="retur" style="font-size:9pt;" onfocus="this.blur()">
                  <input onmouseover="LightOn(this)" onmouseout="LightOut(this)" type="reset" value="삭제" name="clear" style="font-size:9pt;" onfocus="this.blur()"></form>
</td>
</tr>
</tbody>
</table>
</body>
</html>


html 소스를 암호화 시키는 소스입니다

출처: 위시님 홈
profile 글쓴이 빽짱구

단점이 없는 사람은 장점도 거의 없다 - 에이브러햄 링컨

엮인글 :
https://web.webmini.net/webtip/13937/976/trackback
소중한 댓글 부탁드립니다.
추천수 10단위당 메달이 1개씩 노출되고, 추천수에 따라 배경색이 변하며, 일정수의 추천수를 받을시 BEST 아이콘이 붙게됩니다.
추천수에 따른 배경색 보기 본문으로 바로가기
  • 추천수 50개이상
  • 추천수 30개이상
  • 추천수 20개이상
  • 추천수 10개이상
  • 추천수 3개이상
닫기

댓글 '2'

profile
title: [ani]깜빡이는 표정빽짱구 (13938)

2004.03.23 08:02:16

작성자
확인해 보실려면 Study메뉴에서 >공부및 연습방> html암호화하기 클릭하시면 됩니다. 적용결과를 보실려면 제홈 인터넷창 보기>소스보기 클릭하시면 암호화된 소스를 볼수있을겁니다.
profile
title: [ani]깜빡이는 표정빽짱구 (13939)

2004.06.28 04:06:40

작성자
메모장 하나 여시고, 위에 소스를 그대로 복사해서 붙이고난후 저장 해서 사용하세요.
List of Articles
번호 제목 글쓴이 날짜sort 추천 수 조회 수
66 방문객의 해상도를 자신의 홈에 맞게 바꾸기 [1] title: [ani]깜빡이는 표정빽짱구 2004-10-18 12 2889
65 알고싶은 년도의 달력 미리보기 file [2] 맑은숲 2004-10-21 10 3223
64 웹폰트 사용하는 홈 한자(한문) 자동 변환 소스 [1] title: [ani]깜빡이는 표정빽짱구 2004-10-25 13 4789
63 홈페이지 마우스 커서 (오버시) 바꾸기 [2] title: [ani]깜빡이는 표정빽짱구 2004-10-30 12 6880
62 best of best 제홈 메인테이블 소스 [9] title: [ani]깜빡이는 표정빽짱구 2005-01-06 28 6122
61 best of best 그라데이션 셀렉박스만들기 [1] title: [ani]깜빡이는 표정빽짱구 2005-01-20 29 4761
60 best of best 메일주소를 버튼으로 바꾸기 [2] title: [ani]깜빡이는 표정빽짱구 2005-01-20 28 4150
59 best of best 플래쉬 swf 파일 투명하게하기 title: [ani]깜빡이는 표정빽짱구 2005-03-08 30 5120
58 best of best 내홈에서 메신져 추가하기 스크립트 [3] title: [ani]깜빡이는 표정빽짱구 2005-03-09 28 4741
57 best of best 웹디자인..할때 필요할듯. [2] 맑은숲 2005-03-12 27 5894
56 best of best xp를 빠르게 하자!! file [1] 신념 2005-03-14 20 5570
55 best of best select 폼 예쁘게 꾸며보기 [3] title: [ani]깜빡이는 표정빽짱구 2005-03-15 29 7141
54 best of best 홈페이지에 FTP 폼 넣기 [5] title: [ani]깜빡이는 표정빽짱구 2005-03-15 52 6238
53 best of best input 태그 (검색창안에 이미지넣기) [3] title: [ani]깜빡이는 표정빽짱구 2005-03-15 30 8682
52 best of best 제로보드폴더 복구와 관련한.. [1] title: [ani]깜빡이는 표정빽짱구 2005-03-17 34 9485
51 best of best 서버이전 할경우 이미지네임관련 [4] title: [ani]깜빡이는 표정빽짱구 2005-03-19 32 6612
50 포토샵에서 텍스트작업 [9] title: [ani]깜빡이는 표정빽짱구 2005-07-04 16 7598
49 best of best 셀렉트박스 [5] title: [ani]깜빡이는 표정빽짱구 2005-08-12 20 8628
48 아이프레임 게시판 투명으로 불러오기 [3] title: [ani]깜빡이는 표정빽짱구 2005-09-05 18 8669
47 phpmyadmin을 내 계정에 설치하기 [5] title: [ani]깜빡이는 표정빽짱구 2005-09-27 15 7835