YesYo.com MintState Forums
뒤로    YesYo.com MintState BBS > Tech > Javascript
검색
멤버이름    오토
비밀번호 
 

textarea 늘림.줄임.미리보기

페이지 정보

작성자 MintState 댓글 0건 조회 12,133회 작성일 08-11-10 11:58

본문

textarea 늘림.줄임.미리보기

<html>
<head>
<script language="Javascript">
function Add(str)
{
  document.form.list.focus();
  document.form.list.value+=str;
  return;
}
</script>
<script language="javascript"> 
<!-- 
function row_size_a(){ 
	var plus = document.form; 
	size_a = plus.list; 
	if(size_a.rows == 5){ 
		size_a.rows = 10; // 세로 size 
	} 
	else{ 
		size_a.rows += 5; // 계속늘림 size 
	} 
} 
function row_size_b(){ 
	var stop = document.form; 
	size_b = stop.list; 
	size_b.rows = 5; // 원위치 size 
} 
function row_size_c(){ 
	var minus = document.form; 
	size_c = minus.list; 
	if(size_c.rows == 5){ 
		size_c.rows = 5; // 세로줄임 size 
	} 
	else{ 
	size_c.rows -= 5; // 계속줄임 size 
	} 
} 
//--> 
</script>
<script>
function AppendText(str) {
	document.form.list.value += str;
	return;
}
function EditAppendText(form, type) {
	strin =  "form." + type + ".options[(form." + type + ".selectedIndex)].value";
	form.list.value += eval(strin);
	return;
}
function ViewPage(form) {
	var source = form.list.value;
	document.write(source);
	document.close();
	return true;
}
function preview() {
	temp = document.form.list.value;
	preWindow= open("", 'new_window','width=700,height=500,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,copyhistory=no');
	preWindow.document.open();
	preWindow.document.write(temp);
	preWindow.document.close();
}
function openwin(url) {
	window.open(url,'new_window','width=300,height=300')
}
function clearText(form) {
	document.form.list.value="";
	return;
}
</script>
</head>
<body>
<form name=form action="/" method="post" name='form'>
<table width="500" cellpadding="0" cellspacing="0" border=1>
	<tr>
		<td width="500" height="19">
			<p>
				<a href="javascript:Add('※')">※</a>
				<A href=javascript:Add('☆')>☆</a> <a href=javascript:Add('★')>★</a>
				<A href=javascript:Add('○')>○</a> <A href=javascript:Add('●')>●</a>
				<A href=javascript:Add('◑')>◑</a> <a href=javascript:Add('◐')>◐</a>
				<a href=javascript:Add('⊙')>⊙</a> <a href=javascript:Add('◎')>◎</a>
				<A href=javascript:Add('◇')>◇</a> <a href=javascript:Add('◆')>◆</a>
				<A href=javascript:Add('◈')>◈</a> <A href=javascript:Add('△')>△</a>
				<a href=javascript:Add('▲')>▲</a> <a href=javascript:Add('▽')>▽</a>
				<a href=javascript:Add('▼')>▼</a> <A href=javascript:Add('▷')>▷</a>
				<a href=javascript:Add('▶')>▶</a> <a href=javascript:Add('◁')>◁</a>
				<a href=javascript:Add('◀')>◀</a> <a href=javascript:Add('☞')>☞</a>
				<a href=javascript:Add('♡')>♡</a> <a href=javascript:Add('♥')>♥</a>
				<A href=javascript:Add('♤')>♤</a> <a href=javascript:Add('♠')>♠</a><br>
			</p>
		</td>
	</tr>
	<tr>
		<td width="500" height="18">
			<p>
				<a href=javascript:Add('♡')>♡</a> <a href=javascript:Add('♥')>♥</a>
				<A href=javascript:Add('♧')>♧</a> <a href=javascript:Add('♣')>♣</a>
				<A href=javascript:Add('☏')>☏</a> <a href=javascript:Add('☎')>☎</a>
				<a href=javascript:Add('♨')>♨</a> <a href=javascript:Add('☜')>☜</a>
				<a href=javascript:Add('☞')>☞</a> <A href=javascript:Add('▣')>▣</a>
				<A href=javascript:Add('□')>□</a> <a href=javascript:Add('■')>■</a>
				<A href=javascript:Add('▤')>▤</a> <a href=javascript:Add('▥')>▥</a>
				<A href=javascript:Add('▨')>▨</a> <a href=javascript:Add('▧')>▧</a>
				<a href=javascript:Add('▦')>▦</a> <a href=javascript:Add('▩')>▩</a>
				<A href=javascript:Add('♭')>♭</a> <a href=javascript:Add('♪')>♪</a><br>
			</p>
		</td>
	</tr>
	<tr>
		<td width="500" height="30">
			<input type=radio name=style value='1' checked>TXT
			<input type=radio name=style value='3'>HTML+자동
			[<a href='javascript:preview();'>미리보기</a>]
			[<a href='javascript:clearText();'>지우기</a>]
		</td>
	</tr>
	<tr>
		<td width="500" height="52"><textarea name="list" id='box' rows=12 cols="70" class="unnamed4" wrap="hard"></textarea> </td>
	</tr>
	<tr>
		<td width="500" height="17">
			<p align="right"><a href="javascript:row_size_a()">세로</a>&nbsp;<a href="javascript:row_size_b()"> 스탑</a>&nbsp;<a href="javascript:row_size_c()"> 세로</a></p>
		</td>
	</tr>
</table>
            
<p>  
<input type="submit" value="확인" name="submit" onclick="alert('특수문자 입력하기 예제임을 재 확인해 드림다.');return false;">  
<input type="button" value="취 소" onClick="alert('취소버튼을 클릭하시었음다.');javascript:history.back();" name="button"> 
        
</form> 
</body> 
</html>

댓글목록

등록된 댓글이 없습니다.

Total 179건 7 페이지
Javascript 목록
번호 제목 글쓴이 조회 날짜
59 MintState 12236 11-10
58 MintState 12369 11-10
열람중 MintState 12134 11-10
56 MintState 10544 11-10
55 MintState 11777 11-10
54 MintState 10660 11-10
53 MintState 11574 11-10
52 MintState 13407 11-10
51 MintState 10604 11-10
50 MintState 12333 11-10
49 MintState 12639 11-10
48 MintState 11473 11-10
47 MintState 12720 11-10
46 MintState 10979 11-10
45 MintState 10100 11-10
44 MintState 11881 11-10
43 MintState 11497 11-10
42 MintState 10520 11-10
41 MintState 14212 11-10
40 MintState 15256 11-10
게시물 검색
모바일 버전으로 보기
CopyRight ©2004 - 2024, YesYo.com MintState. ™