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

20

조회 수 : 2223 신고 : 0

profile
작성자 : title: [ani]깜빡이는 표정빽짱구
포인트 : 56933 | 레벨 : 25
<html>

<head>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<style>
.highlighttext{
background-color:yellow;
font-weight:bold;
}
</style>
<script language="Javascript">
<!--
//0=클립보드에 복사를 안합니다., 1=클립보드에 복사를합니다.
var copytoclip=1

function HighlightAll(theField) {
var tempval=eval("document."+theField)
tempval.focus()
tempval.select()
if (document.all&©toclip==1){
therange=tempval.createTextRange()
therange.execCommand("Copy")
window.status="지정영역 선택 또는 복사하기"
setTimeout("window.status=''",1800)
}
}
//-->
</script>

<table border="0" width="98%" cellspacing="0" cellpadding="0">
  <tr>
    <td valign="top" align="left">    <p align="left"><strong><font face="Verdana"><small>선택
            & 복사 스크립트 </small><span style="font-size:8pt;">-모든 브라우저
            가능</span></font></strong></p>
    <p align="left"><small><strong><font face="Verdana">제작: DD</font></strong></small></p>
    <p align="left"><font face="Verdana"><small><strong>설명: 방문객에게 소스를
            우리 DD처럼 좀더 쉽게 복사할 수 있게 해줍니다.</strong> 게다가,
            이 소스는 IE 4 이상에서는 자동으로 클립보드에 복사가 됩니다.</small></font></p>
    <p align="left"><small><font face="Verdana"><strong>예제: 선택&복사
            버튼을 클릭해 보세요. 그리고 옆에 있는 아무런 설정도 없는 보통의
            텍스트에어리어에 붙여넣기 기능을 이용해 보세요.</strong></font></small></p>
    <p align="left"><!--webbot bot="HTMLMarkup" startspan --><form name="test">
<a class="highlighttext" href="javascript:HighlightAll('test.select1')">선택
                & 복사</a><br>
<textarea name="select1" rows=10 cols="72" wrap=virtual style="font-size:9pt;">외눈박이 물고기의 사랑

외눈박이 물고기처럼 살고 싶다
외눈박이 물고기처럼
사랑하고 싶다
두눈박이 물고기처럼 세상을 살기 위해
평생을 두 마리가 함께 붙어 다녔다는
외눈박이 물고기 비목처럼
사랑하고 싶다
    
우리에게 시간은 충분했다 그러나
우리는 그만큼 사랑하지 않았을 뿐
외눈박이 물고기처럼
그렇게 살고 싶다
혼자 있으면
그 혼자 있음이 금방 들켜 버리는
외눈박이 물고기 비목처럼
목숨을 다해 사랑하고 싶다

</textarea><br>
<textarea rows=10 cols="72" wrap=virtual style="font-size:9pt;">테스트(여기서 붙여넣기 해보세요)</textarea>
</form>
    <hr size="1" align="center">
    <p align="left"><small><font face="Verdana"><strong>1단계:</strong> 아래의
            소스를 페이지 중 <head>부분에 넣으세요</font></small></p>
    <form method="POST" action="--WEBBOT-SELF--">
      <!--webbot bot="SaveResults" startspan
      U-File="C:tutors2dynamicindex11_privateform_results.txt"
      S-Format="TEXT/CSV" S-Label-Fields="TRUE" --><!--webbot bot="SaveResults"
      endspan --><p><!--webbot
      bot="HTMLMarkup" startspan --><script>
<!--
function highlight(x){
document.forms[x].elements[0].focus()
document.forms[x].elements[0].select()
}
//-->
</script>




<a href="javascript:highlight(1)" onMouseover="window.status='';return true">선택(복사는 하지 않습니다)</a><!--webbot bot="HTMLMarkup" endspan --><br>
      <textarea rows="8" name="S1" cols="45" wrap="virtual" style="width:98%"><style>
.highlighttext{
background-color:yellow;
font-weight:bold;
}
</style>

<script language="Javascript">
<!--

//0=클립보드에 복사를 안합니다., 1=클립보드에 복사를합니다.
var copytoclip=1

function HighlightAll(theField) {
var tempval=eval("document."+theField)
tempval.focus()
tempval.select()
if (document.all&©toclip==1){
therange=tempval.createTextRange()
therange.execCommand("Copy")
window.status="Contents highlighted and copied to clipboard!"
setTimeout("window.status=''",1800)
}
}
//-->
</script>
</textarea></p>
    </form>
    <p align="left"><small><font face="Verdana"><strong>2단계:</strong> 아래의
            예제처럼 <body>에 삽입합니다.</font></small></p>
    <form method="POST" action="--WEBBOT-SELF--">
      <!--webbot bot="SaveResults" startspan
      U-File="C:tutors2dynamicindex11_privateform_results.txt"
      S-Format="TEXT/CSV" S-Label-Fields="TRUE" --><!--webbot bot="SaveResults"
      endspan --><p><!--webbot
      bot="HTMLMarkup" startspan --><script>
<!--
function highlight(x){
document.forms[x].elements[0].focus()
document.forms[x].elements[0].select()
}
//-->
</script>




<a href="javascript:highlight(2)" onMouseover="window.status='';return true">선택(복사는 하지 않습니다)</a><!--webbot bot="HTMLMarkup" endspan --><br>
      <textarea rows="8" name="S1" cols="45" wrap="virtual" style="width:98%"><form name="test">
<a class="highlighttext" href="javascript:HighlightAll('test.select1')">Select All</a><br>
<textarea name="select1" rows=10 cols=35 >This is some text. This is some text. This is some text. This is some text.</textarea>
</form></textarea></p>
    </form>
    <p align="left"><strong><font face="Verdana"><small>이 소스에 관한 좀더
            자세한 사용법</small></font></strong></p>
    <p><small><font face="Verdana">단계처럼 적용하는 키포인트는:</font></small></p>
    <p><font face="Verdana"><small>ㄱ) form에 이름을 지어둡니다. (ie: <form
    name="test"></small><br>
    <small>ㄴ) 내부 폼 소스에도 이름을 지어둡니다. (ie: <textarea
    name="select1"></small><br>
    <small>ㄷ)  <a> 코드를 아래와 같이 적용합니다.:</small></font></p>
    <p><small><font face="Arial"><a class="highlighttext"
    href="javascript:HighlightAll(<font color="#FF0080">'test.select1'</font>)">Select
    All</a></font></small></p>
    <p><small><font face="Verdana">붉은색 두가지에는 ㄱ)과 ㄴ)에서 지정한 이름을
            순서대로 적어넣습니다.(위의 예를 보면 이해가 가실겁니다. 두 이름
            사이에는 .(점)을 삽입하시고, '(작은따옴표)로 감싸세요.</font></small></p>
</td>
  </tr>
</table>
</body>
</html>
profile 글쓴이 빽짱구

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

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

댓글 '1'

환상 (101055)

2009.09.17 21:39:55

감사합니다 백짱구님!
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