<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Go3.co.kr MintState BBS &amp;gt; Tech &amp;gt; Javascript</title>
<link>https://go3.co.kr/mintbbs/bbs/board.php?bo_table=javascript</link>
<description>테스트 버전 0.2 (2004-04-26)</description>
<language>ko</language>


<item>
<title>스크롤 메뉴(Scroll Menu) 구현해보기</title>
<link>https://go3.co.kr/mintbbs/bbs/board.php?bo_table=javascript&amp;amp;wr_id=5202</link>
<description><![CDATA[스크롤 메뉴(Scroll Menu) 구현해보기<br/>주로 프로모션용 웹페이지나 사이트의 메인페이지에 많은 내용의 콘텐츠를 보여줄 때 사용합니다.<br/>대개 메뉴를 클릭하면 해당 메뉴 섹션으로 스크롤이 이동하여 섹션의 내용이 화면에 보이도록 UI를 구성합니다.<br/><br/>[CODE html]&lt;div class=&#034;header&#034;&gt;<br/>&lt;h1&gt;header&lt;/h1&gt;<br/>&lt;/div&gt;<br/>&lt;div id=&#034;contents&#034;&gt;<br/>&lt;div class=&#034;floating-menu&#034;&gt;<br/>&lt;ul&gt;<br/>&lt;li class=&#034;m&#034;&gt;&lt;a href=&#034;#section-01&#034; class=&#034;menu-01&#034;&gt;&lt;span&gt;메뉴 1&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;<br/>&lt;li class=&#034;m&#034;&gt;&lt;a href=&#034;#section-02&#034; class=&#034;menu-02&#034;&gt;&lt;span&gt;메뉴 2&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;<br/>&lt;li class=&#034;m&#034;&gt;&lt;a href=&#034;#section-03&#034; class=&#034;menu-03&#034;&gt;&lt;span&gt;메뉴 3&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;<br/>&lt;li class=&#034;btn-top&#034;&gt;&lt;a href=&#034;#header&#034; class=&#034;menu-04&#034;&gt;&lt;span&gt;상단으로&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;<br/>&lt;/ul&gt;<br/>&lt;/div&gt;<br/>&lt;div class=&#034;section-01 scroll&#034;&gt;<br/>&lt;h2&gt;섹션 1&lt;/h2&gt;<br/>&lt;/div&gt;<br/>&lt;div class=&#034;section-02 scroll&#034;&gt;<br/>&lt;h2&gt;섹션 2&lt;/h2&gt;<br/>&lt;/div&gt;<br/>&lt;div class=&#034;section-03 scroll&#034;&gt;<br/>&lt;h2&gt;섹션 3&lt;/h2&gt;<br/>&lt;/div&gt;<br/>&lt;/div&gt;<br/>&lt;div class=&#034;footer&#034;&gt; 푸터단 &lt;/div&gt;<br/>Temp CSS<br/>CSS<br/>.header { position: relative; height: 200px; background-color: #ffccec;}<br/>/* contents */<br/>.section-01,.section-02,.section-03 { position: relative; height: 600px; }<br/>.section-01 { background-color: #ffc8a2;}<br/>.section-02 { background-color: #91b8ff;}<br/>.section-03 { background-color: #a2ffbd;}<br/>/* floating menu */<br/>.floating-menu { position: fixed; right: 50px; top: 50%; z-index: 100; width: 128px;  margin: -220px 0 0 0; background-color: #d4cecf;; /*background: url(&#034;&#034;) 0 0 no-repeat;*/ }<br/>.floating-menu li { margin: 0; *float: left; }<br/>.floating-menu a { display: block; width: 123px; padding: 10px 0;color: #fff; text-align: center; border: 1px solid #464646; text-decoration: none;}<br/>.floating-menu a.menu-04 { height: 20px; background: none; }<br/>.floating-menu li.on a { background-color: #333; color: #fff;/*background: url(&#034;&#034;) 0 0 no-repeat;*/ }<br/>.floating-menu li.on a.menu-01 {/* background-position: -131px 0;*/ }<br/>.floating-menu li.on a.menu-02 {/* background-position: -131px -104px;*/ }<br/>.floating-menu li.on a.menu-03 { /*background-position: -131px -219px;*/ }<br/>.footer { height: 100px; background-color: #707070;}<br/>스크롤 메뉴 스크립트<br/>JAVASCRIPT<br/>(function (global, $) {<br/>var $menu   &nbsp; = $(&#039;.floating-menu li.m&#039;),<br/>$contents = $(&#039;.scroll&#039;),<br/>$doc      = $(&#039;html, body&#039;);<br/>$(function () {<br/>// 해당 섹션으로 스크롤 이동<br/>$menu.on(&#039;click&#039;,&#039;a&#039;, function(e){<br/>var $target = $(this).parent(),<br/>idx   &nbsp; = $target.index(),<br/>section = $contents.eq(idx),<br/>offsetTop = section.offset().top;<br/>$doc.stop()<br/>.animate({<br/>scrollTop :offsetTop<br/>}, 800);<br/>return false;<br/>});<br/>});<br/>// menu class 추가<br/>$(window).scroll(function(){<br/>var scltop = $(window).scrollTop();<br/>$.each($contents, function(idx, item){<br/>var $target &nbsp; = $contents.eq(idx),<br/>i       &nbsp; = $target.index(),<br/>targetTop = $target.offset().top;<br/>if (targetTop &lt;= scltop) {<br/>$menu.removeClass(&#039;on&#039;);<br/>$menu.eq(idx).addClass(&#039;on&#039;);<br/>}<br/>if (!(200 &lt;= scltop)) {<br/>$menu.removeClass(&#039;on&#039;);<br/>}<br/>})<br/>});<br/>// Go to the TOP<br/>var btnTop = $(&#039;.btn-top&#039;);<br/>btnTop.on(&#039;click&#039;,&#039;a&#039;, function(e){<br/>e.preventDefault();<br/>$doc.stop()<br/>.animate({<br/>scrollTop : 0<br/>},800)<br/>});<br/>}(window, window.jQuery));[/CODE]]]></description>
<dc:creator>MintState</dc:creator>
<dc:date>Tue, 10 Dec 2024 09:39:13 +0900</dc:date>
</item>


<item>
<title>[자바스크립트] 비밀번호 체크</title>
<link>https://go3.co.kr/mintbbs/bbs/board.php?bo_table=javascript&amp;amp;wr_id=5201</link>
<description><![CDATA[[U][자바스크립트] 비밀번호 체크[/U]<br/><br/>[CODE js]&lt;script&gt;<br/>function CehckPassWord(ObjUserPassWord)<br/>{<br/><br/>&nbsp; &nbsp; if(!ObjUserPassWord.match(/^(?=.*[a-zA-Z])(?=.*[!@#$%^*+=-_])(?=.*[0-9]).{6,16}$/))<br/>&nbsp; &nbsp; {<br/>&nbsp; &nbsp; &nbsp; &nbsp; return false;<br/>&nbsp; &nbsp; }<br/>	<br/>&nbsp; &nbsp; /*if(ObjUserID.indexOf(ObjUserPassWord) &gt; -1)<br/>&nbsp; &nbsp; {<br/>&nbsp; &nbsp; &nbsp; &nbsp; return false;<br/>&nbsp; &nbsp; }*/<br/>&nbsp; &nbsp; <br/>&nbsp; &nbsp; var SamePass_0 = 0; //동일문자 카운트<br/>&nbsp; &nbsp; var SamePass_1 = 0; //연속성(+) 카운드<br/>&nbsp; &nbsp; var SamePass_2 = 0; //연속성(-) 카운드<br/><br/><br/>&nbsp; &nbsp; <br/>&nbsp; &nbsp; var chr_pass_0;<br/>&nbsp; &nbsp; var chr_pass_1;<br/>&nbsp; &nbsp; var chr_pass_2;<br/><br/>&nbsp; &nbsp; <br/>&nbsp; &nbsp; for(var i=0; i &lt; ObjUserPassWord.length; i++)<br/>&nbsp; &nbsp; {<br/>&nbsp; &nbsp; &nbsp; &nbsp; chr_pass_0 = ObjUserPassWord.charAt(i);<br/>&nbsp; &nbsp; &nbsp; &nbsp; chr_pass_1 = ObjUserPassWord.charAt(i+1);<br/>&nbsp; &nbsp; &nbsp; &nbsp; <br/>&nbsp; &nbsp; &nbsp; &nbsp; //동일문자 카운트<br/>&nbsp; &nbsp; &nbsp; &nbsp; if(chr_pass_0 == chr_pass_1)<br/>&nbsp; &nbsp; &nbsp; &nbsp; {<br/>		&nbsp; &nbsp; SamePass_0 = SamePass_0 + 1<br/>&nbsp; &nbsp; &nbsp; &nbsp; }<br/>&nbsp; &nbsp; &nbsp; &nbsp; <br/>&nbsp; &nbsp; &nbsp;  <br/>&nbsp; &nbsp; &nbsp; &nbsp; chr_pass_2 = ObjUserPassWord.charAt(i+2);<br/>&nbsp; &nbsp; &nbsp; &nbsp; //연속성(+) 카운드<br/><br/>&nbsp; &nbsp; &nbsp; &nbsp; if(chr_pass_0.charCodeAt(0) - chr_pass_1.charCodeAt(0) == 1 && chr_pass_1.charCodeAt(0) - chr_pass_2.charCodeAt(0) == 1)<br/>&nbsp; &nbsp; &nbsp; &nbsp; {<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SamePass_1 = SamePass_1 + 1<br/>&nbsp; &nbsp; &nbsp; &nbsp; }<br/>&nbsp; &nbsp; &nbsp; &nbsp; <br/>&nbsp; &nbsp; &nbsp; &nbsp; //연속성(-) 카운드<br/>&nbsp; &nbsp; &nbsp; &nbsp; if(chr_pass_0.charCodeAt(0) - chr_pass_1.charCodeAt(0) == -1 && chr_pass_1.charCodeAt(0) - chr_pass_2.charCodeAt(0) == -1)<br/>&nbsp; &nbsp; &nbsp; &nbsp; {<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SamePass_2 = SamePass_2 + 1<br/>&nbsp; &nbsp; &nbsp; &nbsp; }<br/>&nbsp; &nbsp; }<br/>&nbsp; &nbsp; if(SamePass_0 &gt; 1)<br/>&nbsp; &nbsp; {<br/>&nbsp; &nbsp; &nbsp; &nbsp; return false;<br/>&nbsp; &nbsp; }<br/>&nbsp;  <br/>&nbsp; &nbsp; if(SamePass_1 &gt; 1 || SamePass_2 &gt; 1 )<br/>&nbsp; &nbsp; {<br/>&nbsp; &nbsp; &nbsp; &nbsp; return false;<br/>&nbsp; &nbsp; }<br/><br/>&nbsp;return true;<br/>}<br/>var password1 = &#034;spdn2738!!&#034;;<br/>var chkpass = CehckPassWord(password1);<br/>if (!chkpass) {<br/>	alert(&#034;비밀번호는 6자이상 16자리 이하 영문, 숫자, 특수문자 조합으로 입력해 주세요.&#034;);<br/>} else {<br/>	alert(&#034;사용가능&#034;);<br/>}<br/>&lt;/script&gt;[/CODE]]]></description>
<dc:creator>MintState</dc:creator>
<dc:date>Fri, 22 Mar 2019 16:26:51 +0900</dc:date>
</item>


<item>
<title>[JQUERY]글자수 체크</title>
<link>https://go3.co.kr/mintbbs/bbs/board.php?bo_table=javascript&amp;amp;wr_id=5200</link>
<description><![CDATA[[B]남은 글자수[/B]<br/><A HREF="http://jsfiddle.net/gchoice/n7Mur/" TARGET="_blank"  rel="nofollow">http://jsfiddle.net/gchoice/n7Mur/</A><br/><br/>[CODE html]&lt;!DOCTYPE html&gt;<br/>&lt;html&gt;<br/>&lt;head&gt;<br/>&lt;meta http-equiv=&#034;content-type&#034; content=&#034;text/html; charset=UTF-8&#034;&gt;<br/>&lt;meta name=&#034;viewport&#034; content=&#034;width=device-width, initial-scale=1&#034;&gt;<br/>&lt;title&gt;jquery 글자수 체크&lt;/title&gt;<br/>&lt;script type=&#034;text/javascript&#034; src=&#034;//code.jquery.com/jquery-1.8.3.js&#034;&gt;&lt;/script&gt;<br/>&lt;script type=&#034;text/javascript&#034;&gt;<br/>$(function() {<br/>	$(&#039;.remaining&#039;).each(function() {<br/>		// count 정보 및 count 정보와 관련된 textarea/input 요소를 찾아내서 변수에 저장한다.<br/>		var $count = $(&#039;.count&#039;, this);<br/>		var $input = $(this).prev();<br/>		// .text()가 문자열을 반환하기에 이 문자를 숫자로 만들기 위해 1을 곱한다.<br/>		var maximumCount = $count.text() * 1;<br/>		// update 함수는 keyup, paste, input 이벤트에서 호출한다.<br/>		var update = function() {<br/>			var before = $count.text() * 1;<br/>			var now = maximumCount - $input.val().length;<br/>			// 사용자가 입력한 값이 제한 값을 초과하는지를 검사한다.<br/>			if (now &lt; 0) {<br/>				var str = $input.val();<br/>				alert(&#039;글자 입력수가 초과하였습니다.&#039;);<br/>				$input.val(str.substr(0, maximumCount));<br/>				now = 0;<br/>			}<br/>			// 필요한 경우 DOM을 수정한다.<br/>			if (before != now) {<br/>				$count.text(now);<br/>			}<br/>		};<br/>		// input, keyup, paste 이벤트와 update 함수를 바인드한다<br/>		$input.bind(&#039;input keyup paste&#039;, function() {<br/>			setTimeout(update, 0)<br/>		});<br/>		update();<br/>	});<br/>});<br/>&lt;/script&gt;<br/>&lt;/head&gt;<br/>&lt;body&gt;<br/>&lt;textarea id=&#034;contentHelp&#034;&gt;&lt;/textarea&gt;<br/>&lt;div class=remaining&gt;남은 글자수: &lt;span class=&#034;count&#034;&gt;100&lt;/span&gt;&lt;/div&gt;<br/>&lt;/body&gt;<br/>&lt;/html&gt;[/CODE]<br/><br/>[B]쓴 글자수[/B] <br/>[CODE html]&lt;textarea name=&#034;memo&#034; id=&#034;memo&#034;&gt;&lt;/textarea&gt;<br/>&lt;script language=&#034;javascript&#034;&gt;<br/>$(document).ready(function(){<br/>	var update = function() {<br/>		var now = $(&#039;#memo&#039;).val().length;<br/>		$(&#039;.count&#039;).text(now);<br/>	};<br/>	// input, keyup, paste 이벤트와 update 함수를 바인드한다<br/>	$(&#039;#memo&#039;).bind(&#039;input keyup paste&#039;, function() {<br/>		setTimeout(update, 0)<br/>	});<br/>	update();<br/>});<br/>&lt;/script&gt;[/CODE]]]></description>
<dc:creator>MintState</dc:creator>
<dc:date>Tue, 24 Jul 2018 15:57:14 +0900</dc:date>
</item>


<item>
<title>상단으로 이동 버튼</title>
<link>https://go3.co.kr/mintbbs/bbs/board.php?bo_table=javascript&amp;amp;wr_id=5199</link>
<description><![CDATA[[U]상단으로 이동 버튼[/U]<br/><br/>홈페이지가 길어지면 상단으로 버튼을 만드는 것이 좋다. <br/>스크롤에 따라 나타났다 사라졌다 하는 버튼을 만들어 본다. <br/><br/>[CODE html]&lt;!--상단올라가기--&gt;<br/>&lt;script type=text/javascript&gt;<br/>$(document).ready(function(){<br/>&nbsp; &nbsp; $(&#034;.return-top&#034;).hide(); // 탑 버튼 숨김<br/>&nbsp; &nbsp; $(function () {<br/>&nbsp; &nbsp; &nbsp; &nbsp; $(window).scroll(function () {<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ($(this).scrollTop() &gt; 100) { // 스크롤 내릴 표시<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $(&#039;.return-top&#039;).fadeIn();<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } else {<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $(&#039;.return-top&#039;).fadeOut();<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br/>&nbsp; &nbsp; &nbsp; &nbsp; });<br/>&nbsp; &nbsp; &nbsp; &nbsp; $(&#039;.return-top&#039;).click(function () {<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $(&#039;body,html&#039;).animate({<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; scrollTop: 0<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }, 800);&nbsp; // 탑 이동 스크롤 속도<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return false;<br/>&nbsp; &nbsp; &nbsp; &nbsp; });<br/>&nbsp; &nbsp; });<br/>});<br/>&lt;/script&gt;<br/>&lt;a class=&#034;return-top&#034; href=&#034;#&#034;&gt;&lt;img src=&#034;./img/topbtn.png&#034;&gt;&lt;/a&gt;<br/>&lt;style&gt;<br/>.return-top {right:10px; bottom:30px; position:fixed; z-index:9999; padding:5px 10px 10px 10px;}<br/>.return-top img {width:45px;}	<br/>&lt;/style&gt;<br/>&lt;!--상단올라가기끝--&gt;[/CODE]<br/><br/><br/>중앙 정렬 홈페이지 일경우.<br/>[CODE html]&lt;div class=&#034;return-top&#034;&gt;&lt;a href=&#034;#&#034;&gt;&lt;img src=&#034;./img/topbtn.png&#034;&gt;&lt;/a&gt;&lt;/div&gt;<br/>&lt;style&gt;<br/>.return-top {left:50%;bottom:30px;position:fixed;z-index:9999;margin-left:530px;}<br/>.return-top a {padding:5px 10px 10px 10px;}	<br/>.return-top img {width:45px;}	<br/>&lt;/style&gt;[/CODE]]]></description>
<dc:creator>MintState</dc:creator>
<dc:date>Thu, 19 Apr 2018 11:23:22 +0900</dc:date>
</item>


<item>
<title>자바스크립트 한글 금액 찍기</title>
<link>https://go3.co.kr/mintbbs/bbs/board.php?bo_table=javascript&amp;amp;wr_id=5198</link>
<description><![CDATA[[U]자바스크립트 한글 금액 찍기[/U]<br/><br/>정규식을 이용한 방법<br/>[CODE js]//숫자를 한글로 바꾸어 반환<br/>function getKorNameMoney(amount) {<br/>&nbsp; // 공백을 찾는다.<br/>&nbsp; // 해석을 하면 &#034;/&#034; 정규식을 시작한다. &#034;^&#034; 해당 받은 문자를 시작한다. <br/>&nbsp; // &#034;\s&#034; 공백을 &#034;$&#034; 해당 줄의 끝에서부터 찾아라. &#034;/&#034; 여기까지가 정규식이다.<br/>&nbsp; // 정규식.test(정규식체크할변수) 로 공백이 있으면 이 로직을 탄다.<br/>&nbsp; if(/^\s*$/.test(amount))<br/>&nbsp; &nbsp; return &#034;&#034;;<br/>&nbsp;<br/>&nbsp; // 헉 또 정규식이... 자 또 해석을 해 보자.<br/>&nbsp; // &#034;/&#034; 정규식 시작하고 &#034;^&#034; 첫 라인부터 &#034;0&#034; 숫자가 0이 &#034;*&#034; 여러개 존재 &#034;|&#034;(Or이죠)하거나<br/>&nbsp; // &#034;,&#034;를 &#034;*&#034; 여러개 있다면 replace로 &#034;&#034; 으로 치환하라는거죠.<br/>&nbsp; // &#034;/&#034; 정규식 닫은 곳에 i와 g는 i는 대소문자를 무시하라는 거죠. <br/>&nbsp; // g는 패턴에 맞는 모든 문자를 찾아라는 거죠.<br/>&nbsp; amount = amount.replace(/^0*|,*/ig,&#034;&#034;);<br/>&nbsp; var korNumName = [&#034;&#034;,&#034;일&#034;,&#034;이&#034;,&#034;삼&#034;,&#034;사&#034;,&#034;오&#034;,&#034;육&#034;,&#034;칠&#034;,&#034;팔&#034;,&#034;구&#034;];<br/>&nbsp; var unit = [&#034;&#034;,&#034;십&#034;,&#034;백&#034;,&#034;천&#034;];<br/>&nbsp; var gunit = [<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [&#034;&#034;,&#034;^[1-4]$&#034;,1],<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [&#034;만&#034;,&#034;^[5-8]$&#034;,5],<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [&#034;억&#034;,&#034;^9|1[0-2]$&#034;,9],<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [&#034;조&#034;,&#034;^1[3-6]$&#034;,13],<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [&#034;경&#034;,&#034;^1[7-9]|20$&#034;, 17],<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [&#034;해&#034;,&#034;^2[1-4]$&#034;, 21],<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [&#034;자&#034;,&#034;^2[5-8]$&#034;, 25]<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ];<br/><br/>&nbsp; var res = &#034;&#034;;&nbsp; &nbsp; &nbsp; // 리턴값 정의<br/>&nbsp; var tmp = &#034;&#034;;&nbsp; &nbsp;  // 임시로 숫자 단위별로 저장할 변수<br/>&nbsp; var mxlen = amount.length;<br/>&nbsp; var rexp = null;&nbsp; // 해당 정규식을 저장한다.<br/>&nbsp; var cpos = 0;<br/>&nbsp;<br/>&nbsp; for(var i=0; i &lt; mxlen ; i++){<br/>&nbsp; &nbsp; cpos = mxlen - i;<br/>&nbsp; &nbsp; tmp = korNumName[parseInt(amount.charAt(i))];<br/>&nbsp;<br/>&nbsp; &nbsp; if (tmp != &#034;&#034;)<br/>&nbsp; &nbsp; {<br/>&nbsp; &nbsp; &nbsp;  for(var j=0; j &lt; gunit.length; j++){<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  rexp = new RegExp(gunit[j][1]);<br/>&nbsp;<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if(rexp.test(cpos)){<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  tmp += unit[(cpos - gunit[j][2])];<br/>&nbsp;<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if(cpos == gunit[j][2])<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tmp += gunit[j][0];<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br/>&nbsp; &nbsp; &nbsp; &nbsp; }<br/>&nbsp; &nbsp;  }<br/>&nbsp; &nbsp;  res += (tmp + &#034; &#034;);<br/>&nbsp; }<br/>&nbsp;<br/>&nbsp; res += &#034; 원정&#034;;<br/>&nbsp; return res;<br/>}[/CODE]<br/>&nbsp;<br/><br/>배열을 이용한 방법 <br/>[CODE js]hanNumber&nbsp;  = new Array (&#039;영&#039;, &#039;일&#039;, &#039;이&#039;, &#039;삼&#039;, &#039;사&#039;, &#039;오&#039;, &#039;육&#039;, &#039;칠&#039;, &#039;팔&#039;, &#039;구&#039; );<br/>fourFour&nbsp; &nbsp; = new Array (&#039;일&#039;, &#039;만&#039;, &#039;억&#039;, &#039;조&#039; );<br/>fourDigit&nbsp;  = new Array (&#039;일&#039;, &#039;십&#039;, &#039;백&#039;, &#039;천&#039; );<br/>function getHanAmt(num, strValue) {<br/>&nbsp; &nbsp; str = &#034;&#034;;<br/>&nbsp; &nbsp; strr = num.split(&#034;,&#034;);<br/>&nbsp; &nbsp; for (i=0; i&lt;strr.length; i++){<br/>&nbsp; &nbsp; &nbsp; &nbsp; str += strr[i];<br/>&nbsp; &nbsp; }<br/>&nbsp; &nbsp; num = str;<br/>&nbsp; &nbsp; // 한글금액 처리<br/>&nbsp; &nbsp; delimiter = &#039; &#039;;<br/>&nbsp; &nbsp; var endValue = &#039; 원&#039;;&nbsp; &nbsp; // 원(圓)<br/>&nbsp; &nbsp; var endZValue= &#039; 영&#039;;&nbsp; &nbsp; // 영(零)<br/>&nbsp; &nbsp; bPos = 0; // 만(萬), 억(億), 조(兆)<br/>&nbsp; &nbsp; sPos = 0; // 십(十), 백(百), 천(千)<br/>&nbsp; &nbsp; digit = 0;<br/>&nbsp; &nbsp; if (strValue==null || strValue==&#039;0&#039;){&nbsp; &nbsp; &nbsp; &nbsp; // 원단위<br/>&nbsp; &nbsp; &nbsp; &nbsp; bPos = 0; // 만, 억, 조<br/>&nbsp; &nbsp; &nbsp; &nbsp; sPos = 0; // 십, 백, 천<br/>&nbsp; &nbsp; &nbsp; &nbsp; endValue = &#034; 원&#034;;<br/>&nbsp; &nbsp; &nbsp; &nbsp; endZValue = &#034;영 원&#034;;<br/>&nbsp; &nbsp; } else if (strValue==&#039;1&#039;){&nbsp; &nbsp; //만단위<br/>&nbsp; &nbsp; &nbsp; &nbsp; bPos = 1; // 만, 억, 조<br/>&nbsp; &nbsp; &nbsp; &nbsp; sPos = 0; // 십, 백, 천<br/>&nbsp; &nbsp; &nbsp; &nbsp; endValue = &#034; 원&#034;;<br/>&nbsp; &nbsp; &nbsp; &nbsp; endZValue = &#034;영 만원&#034;;<br/>&nbsp; &nbsp; } else if (strValue==&#039;2&#039;) {&nbsp; &nbsp; //십만단위<br/>&nbsp; &nbsp; &nbsp; &nbsp; bPos = 1; // 만, 억, 조<br/>&nbsp; &nbsp; &nbsp; &nbsp; sPos = 1; // 십, 백, 천<br/>&nbsp; &nbsp; &nbsp; &nbsp; endValue = &#034;만 원&#034;;<br/>&nbsp; &nbsp; &nbsp; &nbsp; endZValue = &#034;영 십만원&#034;;<br/>&nbsp; &nbsp; }<br/>&nbsp; &nbsp; szDigit = &#039;&#039;;<br/>&nbsp; &nbsp; is_start = false;<br/>&nbsp; &nbsp; appendFF = false;<br/>&nbsp; &nbsp; len = num.length;<br/>&nbsp; &nbsp; szHan = &#039;&#039;;<br/>&nbsp; &nbsp; for (i=len-1;i&gt;=0;i--) {<br/>&nbsp; &nbsp; &nbsp; &nbsp; szDigit = num.substring(i,i+1);<br/>&nbsp; &nbsp; &nbsp; &nbsp; digit = parseInt(szDigit);<br/>&nbsp; &nbsp; &nbsp; &nbsp; if (digit!=0) {<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (bPos!=0 && sPos==0) {<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (is_start==true) szHan += delimiter;<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; szHan += fourFour[bPos]; // 만, 억<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; appendFF=false;<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (bPos!=0 && appendFF==true) {<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (is_start==true) szHan += delimiter;<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; szHan += fourFour[bPos]; // 만, 억<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; appendFF=false;<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (sPos!=0) szHan += fourDigit[sPos]; // 십, 백, 천<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; szHan += hanNumber[digit]; // 일, 이, 삼<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; is_start=true;<br/>&nbsp; &nbsp; &nbsp; &nbsp; }<br/>&nbsp; &nbsp; &nbsp; &nbsp; else if (sPos==0 && bPos!=0) appendFF = true;<br/>&nbsp; &nbsp; &nbsp; &nbsp; sPos++;<br/>&nbsp; &nbsp; &nbsp; &nbsp; if (sPos%4==0) {<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sPos=0;<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bPos++;<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (bPos&gt;=4) return &#034;(범위초과)&#034;;<br/>&nbsp; &nbsp; &nbsp; &nbsp; }<br/>&nbsp; &nbsp; }<br/>&nbsp; &nbsp; if (is_start==false)<br/>&nbsp; &nbsp; {<br/>&nbsp; &nbsp; &nbsp; &nbsp; rslt = &#039;&#039;;<br/>&nbsp; &nbsp; &nbsp; &nbsp; return rslt + endZValue;<br/>&nbsp; &nbsp; }<br/>&nbsp; &nbsp; else<br/>&nbsp; &nbsp; {<br/>&nbsp; &nbsp; &nbsp; &nbsp; rslt = &#039;&#039;;<br/>&nbsp; &nbsp; &nbsp; &nbsp; for(i = szHan.length - 1; i &gt;= 0; i--) {<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rslt += szHan.substring(i, i + 1);<br/>&nbsp; &nbsp; &nbsp; &nbsp; }<br/>&nbsp; &nbsp; &nbsp; &nbsp; return rslt + endValue;<br/>&nbsp; &nbsp; }<br/>}[/CODE]]]></description>
<dc:creator>MintState</dc:creator>
<dc:date>Thu, 02 Nov 2017 09:43:39 +0900</dc:date>
</item>


<item>
<title>video.js videojs-panorama HTML5 비디오 플레이어</title>
<link>https://go3.co.kr/mintbbs/bbs/board.php?bo_table=javascript&amp;amp;wr_id=5197</link>
<description><![CDATA[[S]video.js videojs-panorama HTML5 비디오 플레이어[/S]<br/><br/>[U]video.js - open source HTML5 & Flash video player[/U]<br/><A HREF="https://github.com/videojs/video.js" TARGET="_blank"  rel="nofollow">https://github.com/videojs/video.js</A><br/><A HREF="http://videojs.com/" TARGET="_blank"  rel="nofollow">http://videojs.com/</A><br/><br/><br/>[B]a plugin for videojs run a full 360 degree panorama video. [/B]<br/><A HREF="https://github.com/yanwsh/videojs-panorama" TARGET="_blank"  rel="nofollow">https://github.com/yanwsh/videojs-panorama</A><br/><A HREF="http://yanwsh.github.io/videojs-panorama/" TARGET="_blank"  rel="nofollow">http://yanwsh.github.io/videojs-panorama/</A>]]></description>
<dc:creator>MintState</dc:creator>
<dc:date>Fri, 27 Oct 2017 14:30:53 +0900</dc:date>
</item>


<item>
<title>GIF 플레이어(제어)</title>
<link>https://go3.co.kr/mintbbs/bbs/board.php?bo_table=javascript&amp;amp;wr_id=5196</link>
<description><![CDATA[[U]IF 플레이어(제어)[/U]<br/><br/>가끔씩 gif 를 홈페이지에 넣게 되는데 계속 로테이션으로 플레이 되어 안좋은 때가 있습니다.<br/><br/>그래서 소개해 드릴것이 gifplayer 입니다. jquery 플러그인식으로 작동합니다.<br/>[URL=http://rubentd.com/gifplayer]<A HREF="http://rubentd.com/gifplayer" TARGET="_blank"  rel="nofollow">http://rubentd.com/gifplayer</A>[/URL]<br/>[URL=https://github.com/rubentd/gifplayer]<A HREF="https://github.com/rubentd/gifplayer" TARGET="_blank"  rel="nofollow">https://github.com/rubentd/gifplayer</A>[/URL]<br/><br/><br/>Customizable jquery plugin to play and stop animated gifs. Similar to 9gag&#039;s. New: Video support (webm, mp4)<br/><br/>###Basic Usage<br/>1. Add a preview of the gif or video file to your website<br/>2. Specify a ‘data-src’ attribute with the path to the animated gif or video, or simply have an image with the same name and the .gif extension in the same folder of the ‘preview’ image<br/>3. Include jquery.js, jquery.gifplayer.js and gifplayer.css on your site<br/>4. Call the .gifplayer() method for the desired images<br/>[CODE html]&lt;img class=&#034;gifplayer&#034; src=&#034;media/banana.png&#034; /&gt;<br/>&lt;script&gt;<br/>	$(&#039;.gifplayer&#039;).gifplayer();<br/>&lt;/script&gt;[/CODE]]]></description>
<dc:creator>MintState</dc:creator>
<dc:date>Tue, 26 Sep 2017 11:37:59 +0900</dc:date>
</item>


<item>
<title>youtube ID 값 추출</title>
<link>https://go3.co.kr/mintbbs/bbs/board.php?bo_table=javascript&amp;amp;wr_id=5195</link>
<description><![CDATA[[U]youtube ID 값 추출[/U]<br/><br/>[CODE js]function getId(url) {<br/>&nbsp; &nbsp; var regExp = /^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/;<br/>&nbsp; &nbsp; var match = url.match(regExp);<br/><br/>&nbsp; &nbsp; if (match && match[2].length == 11) {<br/>&nbsp; &nbsp; &nbsp; &nbsp; return match[2];<br/>&nbsp; &nbsp; } else {<br/>&nbsp; &nbsp; &nbsp; &nbsp; return &#039;error&#039;;<br/>&nbsp; &nbsp; }<br/>}<br/><br/>var myId = getId(&#039;http://www.youtube.com/watch?v=zbYf5_S7oJo&#039;);<br/><br/>var myCode = &#039;&lt;iframe width=&#034;560&#034; height=&#034;315&#034; src=&#034;//www.youtube.com/embed/&#039; <br/>&nbsp; &nbsp; + myId + &#039;&#034; frameborder=&#034;0&#034; allowfullscreen&gt;&lt;/iframe&gt;&#039;;[/CODE]]]></description>
<dc:creator>MintState</dc:creator>
<dc:date>Wed, 08 Mar 2017 14:39:13 +0900</dc:date>
</item>


<item>
<title>Javascript - 비밀번호 유효성 검사(password validation)</title>
<link>https://go3.co.kr/mintbbs/bbs/board.php?bo_table=javascript&amp;amp;wr_id=5194</link>
<description><![CDATA[[U]Javascript - 비밀번호 유효성 검사(password validation)[/U]<br/><br/>암호 유효성 검사 스크립트 입니다.<br/><br/>출처 : <A HREF="http://blog.naver.com/alondightoo/220263824623" TARGET="_blank"  rel="nofollow">http://blog.naver.com/alondightoo/220263824623</A><br/><br/>[B]1. 영문, 숫자 혼합하여 6~20자리 이내[/B]<br/>[CODE js]function chkPwd(str){<br/>&nbsp;var reg_pwd = /^.*(?=.{6,20})(?=.*[0-9])(?=.*[a-zA-Z]).*$/;<br/>&nbsp;if(!reg_pwd.test(str)){<br/>&nbsp; return false;<br/>&nbsp;}<br/>&nbsp;return true;<br/>}<br/>if(!chkPwd( $.trim($(&#039;#mpassword&#039;).val()))){ <br/>&nbsp;alert(&#039;비밀번호를 확인하세요.₩n(영문,숫자를 혼합하여 6~20자 이내)&#039;);&nbsp; &nbsp; <br/>&nbsp;$(&#039;#mpassword&#039;).val(&#039;&#039;);<br/>&nbsp;$(&#039;#mpassword&#039;).focus(); return false;<br/>&nbsp;}[/CODE]<br/><br/><br/>[B]2. 영문,숫자,특수문자 혼합하여 8자리~20자리 이내.(비밀번호 표준)[/B]<br/>[CODE js]function chkPwd(str){<br/>&nbsp;var pw = str;<br/>&nbsp;var num = pw.search(/[0-9]/g);<br/>&nbsp;var eng = pw.search(/[a-z]/ig);<br/>&nbsp;var spe = pw.search(/[`~!@@#$%^&*|₩₩₩&#039;₩&#034;;:₩/?]/gi);<br/>&nbsp;<br/>&nbsp;if(pw.length &lt; 8 || pw.length &gt; 20){<br/>&nbsp; alert(&#034;8자리 ~ 20자리 이내로 입력해주세요.&#034;);<br/>&nbsp; return false;<br/>&nbsp;}<br/>&nbsp;if(pw.search(/₩s/) != -1){<br/>&nbsp; alert(&#034;비밀번호는 공백업이 입력해주세요.&#034;);<br/>&nbsp; return false;<br/>&nbsp;} if(num &lt; 0 || eng &lt; 0 || spe &lt; 0 ){<br/>&nbsp; alert(&#034;영문,숫자, 특수문자를 혼합하여 입력해주세요.&#034;);<br/>&nbsp; return false;<br/>&nbsp;}<br/>&nbsp;<br/>&nbsp;return true;<br/>}<br/>if(!chkPwd( $.trim($(&#039;#mpassword&#039;).val()))){<br/>&nbsp;  $(&#039;#mpassword&#039;).val(&#039;&#039;);<br/>&nbsp;  $(&#039;#mpassword&#039;).focus();<br/>&nbsp;  return false;<br/>}[/CODE]<br/><br/><br/>[B]3. 영문,숫자,특수문자 중 2가지 혼합하여 10자리~20자리 이내.(비밀번호 표준)[/B]<br/>[CODE js]function chkPwd(str){<br/>&nbsp;var pw = str;<br/>&nbsp;var num = pw.search(/[0-9]/g);<br/>&nbsp;var eng = pw.search(/[a-z]/ig);<br/>&nbsp;var spe = pw.search(/[`~!@@#$%^&*|₩₩₩&#039;₩&#034;;:₩/?]/gi);<br/>&nbsp;if(pw.length &lt; 10 || pw.length &gt; 20){<br/>&nbsp; alert(&#034;10자리 ~ 20자리 이내로 입력해주세요.&#034;);<br/>&nbsp; return false;<br/>&nbsp;}<br/>&nbsp;if(pw.search(/₩s/) != -1){<br/>&nbsp; alert(&#034;비밀번호는 공백업이 입력해주세요.&#034;);<br/>&nbsp; return false;<br/>&nbsp;}<br/>&nbsp;if( (num &lt; 0 && eng &lt; 0) || (eng &lt; 0 && spe &lt; 0) || (spe &lt; 0 && num &lt; 0) ){<br/>&nbsp; alert(&#034;영문,숫자, 특수문자 중 2가지 이상을 혼합하여 입력해주세요.&#034;);<br/>&nbsp; return false;<br/>&nbsp;}<br/>&nbsp;return true;<br/>}<br/>if(!chkPwd( $.trim($(&#039;#mpassword&#039;).val()))){<br/>&nbsp;  $(&#039;#mpassword&#039;).val(&#039;&#039;);<br/>&nbsp;  $(&#039;#mpassword&#039;).focus();<br/>&nbsp;  return false;<br/>}[/CODE]]]></description>
<dc:creator>MintState</dc:creator>
<dc:date>Mon, 14 Nov 2016 14:06:21 +0900</dc:date>
</item>


<item>
<title>하단고정레이아웃</title>
<link>https://go3.co.kr/mintbbs/bbs/board.php?bo_table=javascript&amp;amp;wr_id=5193</link>
<description><![CDATA[[U]하단고정레이아웃[/U]<br/><br/>CSS 이용하여 하단고정레이아웃을 만들어 보자. <br/><br/>[CODE html]&lt;!DOCTYPE html PUBLIC &#034;-//W3C//DTD XHTML 1.0 Transitional//EN&#034; &#034;<A HREF="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#034;" TARGET="_blank"  rel="nofollow">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#034;</A>&gt;<br/>&lt;html xmlns=&#034;<A HREF="http://www.w3.org/1999/xhtml&#034;" TARGET="_blank"  rel="nofollow">http://www.w3.org/1999/xhtml&#034;</A> xml:lang=&#034;ko&#034; lang=&#034;ko&#034;&gt;<br/>&lt;head&gt;<br/>&lt;title&gt;하단고정레이아웃&lt;/title&gt;<br/>&lt;meta http-ｅquiv=&#034;Content-Type&#034; content=&#034;text/html; charset=utf-8&#034; /&gt;<br/>&lt;style&gt;<br/>html { overflow: hidden; }<br/>html, body { width: 100%; height: 100%; margin: 0; padding: 0; }<br/>#wrapper{ width: 100%; height: 100%; position: absolute; overflow-y:scroll; }<br/>#content { width: 100%; padding-bottom:50px; }<br/>#footer <br/>{ <br/>&nbsp;background-color:#eeeeee;<br/>&nbsp;overflow: hidden;<br/>&nbsp;position: absolute;<br/>&nbsp;bottom: 0; <br/>&nbsp;height: 50px; width:100%; text-align: center;<br/>&nbsp;margin-left:0px; margin-bottom:-1px;<br/>}<br/>&lt;/style&gt;<br/>&lt;/head&gt;<br/>&lt;body&gt;<br/>&lt;div id=&#034;wrapper&#034;&gt;<br/>&nbsp;&lt;div id=&#034;content&#034;&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용... &lt;BR&gt;<br/>&nbsp; 본문내용END&lt;BR&gt;<br/>&nbsp;&lt;/div&gt;<br/>&lt;/div&gt;<br/>&lt;div id=&#034;footer&#034;&gt;<br/>&nbsp;풋터내용<br/>&lt;/div&gt;<br/>&nbsp; &nbsp; <br/>&lt;/body&gt;<br/>&lt;/html&gt;[/CODE]]]></description>
<dc:creator>MintState</dc:creator>
<dc:date>Fri, 01 Jul 2016 14:30:17 +0900</dc:date>
</item>


<item>
<title>highcharts</title>
<link>https://go3.co.kr/mintbbs/bbs/board.php?bo_table=javascript&amp;amp;wr_id=5192</link>
<description><![CDATA[[U]highcharts[/U]<br/><br/>[URL]<A HREF="http://www.highcharts.com" TARGET="_blank"  rel="nofollow">http://www.highcharts.com</A>[/URL]<br/><br/>[B]Highcharts[/B]<br/>Create interactive charts easily for your web projects. <br/>[I]Used by tens of thousands of developers and 61 out of the world&#039;s 100 largest companies, Highcharts is the simplest yet most flexible charting API on the market. [/I]<br/><br/>[B]Highstock[/B]<br/>Highstock lets you create stock or general timeline charts in pure JavaScript.&nbsp; <br/>[I]Including sophisticated navigation options like a small navigator series, preset date ranges, date picker, scrolling and panning. [/I]<br/><br/>[B]Highmaps[/B]<br/>Interactive map charts with drilldown and touch support.&nbsp; <br/>[I]Build interactive maps to display sales, election results or any other information linked to geography. Perfect for standalone use or in dashboards in combination with Highcharts! [/I]]]></description>
<dc:creator>MintState</dc:creator>
<dc:date>Thu, 05 Mar 2015 16:04:43 +0900</dc:date>
</item>


<item>
<title>jQuery Masonry 갤러리 리스트 효과</title>
<link>https://go3.co.kr/mintbbs/bbs/board.php?bo_table=javascript&amp;amp;wr_id=5190</link>
<description><![CDATA[[U]jQuery Masonry 갤러리 리스트 효과[/U]<br/><br/>중국사이트 뒤지던중 재미있는 효과를 찾았다. <br/><br/>[URL]<A HREF="http://masonry.desandro.com/" TARGET="_blank"  rel="nofollow">http://masonry.desandro.com/</A>[/URL] 사이트에서 배포를 하는데 이 사이트를 방문하면 데모를 볼 수 있다. <br/>이 소스와 infinite scroll ([URL]<A HREF="http://www.infinite-scroll.com/" TARGET="_blank"  rel="nofollow">http://www.infinite-scroll.com/</A>[/URL])라는 소스를 합치면 효과 만점이다.<br/><br/>브라우져에서 스크롤을 하단까지 나오면 다음 갤러리가 출력되는 방법을 쓰면 되겠다.<br/>구체적인 적용방법은 한번 써봐야 알겠지만 중국쪽 사이트에서는 매력적으로 보였다.<br/><br/>첨부파일과 사이트를 참조하면 된다.]]></description>
<dc:creator>MintState</dc:creator>
<dc:date>Tue, 19 Nov 2013 18:54:07 +0900</dc:date>
</item>


<item>
<title>파이어폭스, IE에 모두 적용되는 iframe 태그</title>
<link>https://go3.co.kr/mintbbs/bbs/board.php?bo_table=javascript&amp;amp;wr_id=184</link>
<description><![CDATA[[U]파이어폭스, IE에 모두 적용되는 iframe 태그[/U]<br/><br/>기존에 dtd 선언하지 않았을 경우 파폭에서도 잘 되었는데 dtd를 선언하니 리사이즈가 안되어 검색중 발견한 포스팅입니다.<br/><br/>출처 : <A HREF="http://icq4ever.webzero.co.kr/tt/521" TARGET="_blank"  rel="nofollow">http://icq4ever.webzero.co.kr/tt/521</A><br/><br/>iframe태그를 사용하면 원래 페이지 안에 또다른 웹페이지를 넣을수가 있는데<br/>가로, 세로 사이즈를 적용하여 넣을 공간을 잡아주어야 한다.<br/><br/>사이즈는 px단위를 사용할수도 있고, 테이블의 셀이나 html등 넣을 위치의 전체 공간을 기준으로 %를 사용할수도 있다. 하지만 제로보드나 여타 게시판을 만약 삽입할 경우 사이즈가 정해진것이 아니어서 집어넣은 웹페이지가 사이즈를 초과할 경우 스크롤바가 나타나거나 짤릴수가 있다.<br/><br/>게다가 파이어폭스는 훨씬 심각하다.<br/>html태그는 표준이 존재하기는 하지만 IE나 firefox, safari, mozilla등 많은 브라우저마다 적용되는 태그가 있고 그렇지 않은 태그가 있다. iframe도 마찬가지인데 .. 파이어폭스의 경우 사이즈를 정해놔도 조그만한 박스로만 나온다.<br/><br/>[CODE html]&lt;iframe src=zero/zboard.php?id=guest name=&#034;myframe&#034; width=&#034;100%&#034; height=&#034;100%&#034; marginwidth=&#034;0&#034; marginheight=&#034;0&#034; frameborder=&#034;no&#034;&gt;[/CODE]<br/>[ATTACH]631[/ATTACH]<br/>위소스를 사용하면 파이어폭스에서는 이렇게 나온다<br/><br/>이번에 후미진용 페이지를 만들면서 이리저리 소스를 찾아보다가 발견한 유용한 소스를 하나 소개한다.<br/>자바스크립트를 사용하며, 웹브라우저 정보를 읽어들여 파이어폭스일경우에 별도의 함수를 사용하는듯 하다.<br/><br/>자바스크립트 부분<br/>[CODE js]&lt;script type=&#034;text/javascript&#034;&gt;<br/>var iframeids=[&#034;myframe&#034;]<br/>var iframehide=&#034;yes&#034;<br/><br/>var getFFVersion=navigator.userAgent.substring(navigator.userAgent.indexOf(&#034;Firefox&#034;)).split(&#034;/&#034;)[1]<br/>var FFextraHeight=getFFVersion&gt;=0.1? 16 : 20 //extra height in px to add to iframe in FireFox 1.0+ browsers<br/><br/>function resizeCaller() {<br/>	var dyniframe=new Array()<br/>	for (i=0; i&lt;iframeids.length; i++){<br/>		if (document.getElementById)<br/>			resizeIframe(iframeids[i])<br/>		if ((document.all || document.getElementById) && iframehide==&#034;no&#034;){<br/>			var tempobj=document.all? document.all[iframeids[i]] : document.getElementById(iframeids[i])<br/>			tempobj.style.display=&#034;block&#034;<br/>		}<br/>	}<br/>}<br/><br/>function resizeIframe(frameid){<br/>	var currentfr=document.getElementById(frameid)<br/>	if (currentfr && !window.opera){<br/>		currentfr.style.display=&#034;block&#034;<br/>		if (currentfr.contentDocument && currentfr.contentDocument.body.offsetHeight) //ns6 syntax<br/>			currentfr.height = currentfr.contentDocument.body.offsetHeight+FFextraHeight; <br/>		else if (currentfr.Document && currentfr.Document.body.scrollHeight) //ie5+ syntax<br/>			currentfr.height = currentfr.Document.body.scrollHeight;<br/>		if (currentfr.addEventListener)<br/>			currentfr.addEventListener(&#034;load&#034;, readjustIframe, false)<br/>		else if (currentfr.attachEvent){<br/>			currentfr.detachEvent(&#034;onload&#034;, readjustIframe) // Bug fix line<br/>			currentfr.attachEvent(&#034;onload&#034;, readjustIframe)<br/>		}<br/>	}<br/>}<br/><br/>function readjustIframe(loadevt) {<br/>	var crossevt=(window.event)? event : loadevt<br/>	var iframeroot=(crossevt.currentTarget)? crossevt.currentTarget : crossevt.srcElement<br/>	if (iframeroot)<br/>		resizeIframe(iframeroot.id);<br/>}<br/><br/>function loadintoIframe(iframeid, url){<br/>	if (document.getElementById)<br/>		document.getElementById(iframeid).src=url<br/>}<br/>if (window.addEventListener)<br/>	window.addEventListener(&#034;load&#034;, resizeCaller, false)<br/>else if (window.attachEvent)<br/>	window.attachEvent(&#034;onload&#034;, resizeCaller)<br/>else<br/>	window.onload=resizeCaller<br/>&lt;/script&gt;[/CODE]<br/><br/>iframe 삽입 요령<br/>[CODE html]&lt;iframe id=&#034;myframe&#034; src=&#034;삽입할 웹페이지&#034; width=&#034;100%&#034; frameborder=&#034;0&#034;scrolling=&#034;no&#034;&gt;&lt;/iframe&gt;[/CODE]<br/>iframe id는 자바스크립트에서 사용되며 반드시 이 둘은 일치해야한다.]]></description>
<dc:creator>MintState</dc:creator>
<dc:date>Mon, 11 Apr 2011 16:13:32 +0900</dc:date>
</item>


<item>
<title>롤링 위 아래 버튼 적용</title>
<link>https://go3.co.kr/mintbbs/bbs/board.php?bo_table=javascript&amp;amp;wr_id=183</link>
<description><![CDATA[[U]롤링 위 아래 버튼 적용[/U]<br/><br/>dtd 환경에서도 잘 작동 됩니다.<br/><br/>[ATTACH]630[/ATTACH]<br/><br/>[CODE html]&lt;style type=&#034;text/css&#034;&gt; <br/>*{font-family:돋움,Dotum,AppleGothic,sans-serif;font-size:12px;color:#333;} <br/>body,form,div,p,h1,h2,h3,h4,h5,h6,dl,dt,dd,ul,ol,li,pre,fieldset,input,blockquote,th,td{margin:0;padding:0;} <br/>ol,ul,dl{list-style:none;} <br/>a{color:#333;text-decoration:none;} <br/>a:hover,a:hover b,a:hover em,a:hover span{color:#06c;text-decoration:underline;} <br/><br/>/*rolling Button*/ <br/>div.rollBtn{position:absolute;z-index:3;} <br/>div.rollBtn a.next{background-position:-22px 0px;cursor:hand;} <br/>div.rollBtn a.previous{margin-right:3px;cursor:hand;} <br/>div.rollBtn a span{display:none;} <br/><br/>#bKey{position:relative;margin-top:9px;width:270px;zoom:1;} <br/>#bKey .keyBg{margin:1px 0 0 0;overflow:hidden;height:18px;} <br/>#bKey ul{clear:both;} <br/>#bKey ul li{float:left;height:18px;} <br/>#bKey ul li.x{background:url(<A HREF="http://yesyo.com/mintbbs/style/img/nav_div.gif)" TARGET="_blank"  rel="nofollow">http://yesyo.com/mintbbs/style/img/nav_div.gif)</A> 100% 0 no-repeat;margin:0 7px 0 0;padding:0 7px 0 0;} <br/>#bKey ul li a{font-weight:bold;color:#FB6A31;letter-spacing:-1px;} <br/>#bKey .rollBtn{left:203px;top:0;} <br/>#bKey .rollBtn .up{margin-right:3px;} <br/>&lt;/style&gt; <br/>&lt;script language=&#034;JavaScript&#034;&gt; <br/>function scrolling(objId,sec1,sec2,speed,height){ <br/>	this.objId=objId; <br/>	this.sec1=sec1; <br/>	this.sec2=sec2; <br/>	this.speed=speed; <br/>	this.height=height; <br/>	this.h=0; <br/>	this.div=document.getElementById(this.objId); <br/>	this.htmltxt=this.div.innerHTML; <br/>&nbsp; this.div.innerHTML=this.htmltxt+this.htmltxt; <br/>&nbsp; this.div.isover=false; <br/>&nbsp; this.div.onmouseover=function(){this.isover=true;} <br/>&nbsp; this.div.onmouseout=function(){this.isover=false;} <br/>&nbsp; var self=this; <br/>&nbsp; this.div.scrollTop=0; <br/>&nbsp; window.setTimeout(function(){self.play()},this.sec1); <br/>} <br/>scrolling.prototype={ <br/>	play:function(){ <br/>		var self=this; <br/>		if(!this.div.isover){ <br/>			this.div.scrollTop+=this.speed; <br/>			if(this.div.scrollTop&gt;this.div.scrollHeight/2){ <br/>				this.div.scrollTop=0; <br/>			}else{ <br/>				this.h+=this.speed; <br/>				if(this.h&gt;=this.height){ <br/>					if(this.h&gt;this.height|| this.div.scrollTop%this.height !=0){ <br/>						this.div.scrollTop-=this.h%this.height; <br/>					} <br/>					this.h=0; <br/>					window.setTimeout(function(){self.play()},this.sec1); <br/>					return; <br/>				} <br/>			} <br/>		} <br/>		window.setTimeout(function(){self.play()},this.sec2); <br/>	}, <br/>	prev:function(){ <br/>		if(this.div.scrollTop == 0) <br/>		this.div.scrollTop = this.div.scrollHeight/2; <br/>		this.div.scrollTop -= this.height; <br/>	}, <br/>	next:function(){ <br/>		if(this.div.scrollTop ==&nbsp; this.div.scrollHeight/2) <br/>		this.div.scrollTop =0; <br/>		this.div.scrollTop += this.height; <br/>	} <br/>}; <br/>&lt;/script&gt; <br/>&lt;div id=&#034;bKey&#034;&gt; <br/>&lt;div id=&#034;jFavList&#034; class=&#034;keyBg&#034;&gt; <br/>&lt;ul&gt; <br/>&nbsp;&lt;li class=&#034;x&#034;&gt;&lt;a href=&#034;<A HREF="http://c3.paran.com/?l=P111063&#034;" TARGET="_blank"  rel="nofollow">http://c3.paran.com/?l=P111063&#034;</A>&gt;부시 8월 방한&lt;/a&gt;&lt;/li&gt; <br/>&nbsp;&lt;li&gt;&lt;a href=&#034;<A HREF="http://c3.paran.com/?l=P111064&#034;" TARGET="_blank"  rel="nofollow">http://c3.paran.com/?l=P111064&#034;</A>&gt;우리 구단 가입금&lt;/a&gt;&lt;/li&gt; <br/>&lt;/ul&gt; <br/>&lt;ul&gt; <br/>&nbsp;&lt;li class=&#034;x&#034;&gt;&lt;a href=&#034;<A HREF="http://c3.paran.com/?l=P111065&#034;" TARGET="_blank"  rel="nofollow">http://c3.paran.com/?l=P111065&#034;</A>&gt;진보신당 난입 폭행&lt;/a&gt;&lt;/li&gt; <br/>&nbsp;&lt;li&gt;&lt;a href=&#034;<A HREF="http://c3.paran.com/?l=P111066&#034;" TARGET="_blank"  rel="nofollow">http://c3.paran.com/?l=P111066&#034;</A>&gt;남규리 대시&lt;/a&gt;&lt;/li&gt; <br/>&lt;/ul&gt; <br/><br/>&lt;ul&gt; <br/>&nbsp;&lt;li class=&#034;x&#034;&gt;&lt;a href=&#034;<A HREF="http://c3.paran.com/?l=P111067&#034;" TARGET="_blank"  rel="nofollow">http://c3.paran.com/?l=P111067&#034;</A>&gt;미국산 쇠고기 판매&lt;/a&gt;&lt;/li&gt; <br/>&nbsp;&lt;li&gt;&lt;a href=&#034;<A HREF="http://c3.paran.com/?l=P111068&#034;" TARGET="_blank"  rel="nofollow">http://c3.paran.com/?l=P111068&#034;</A>&gt;조중동 다음&lt;/a&gt;&lt;/li&gt; <br/>&lt;/ul&gt; <br/>&lt;ul&gt; <br/>&nbsp;&lt;li class=&#034;x&#034;&gt;&lt;a href=&#034;<A HREF="http://c3.paran.com/?l=P111069&#034;" TARGET="_blank"  rel="nofollow">http://c3.paran.com/?l=P111069&#034;</A>&gt;호나우지뉴 방한&lt;/a&gt;&lt;/li&gt; <br/>&nbsp;&lt;li&gt;&lt;a href=&#034;<A HREF="http://c3.paran.com/?l=P111070&#034;" TARGET="_blank"  rel="nofollow">http://c3.paran.com/?l=P111070&#034;</A>&gt;김구라 사과&lt;/a&gt;&lt;/li&gt; <br/>&lt;/ul&gt; <br/>&lt;ul&gt; <br/>&nbsp;&lt;li class=&#034;x&#034;&gt;&lt;a href=&#034;LPG&#039;&gt;<A HREF="http://c3.paran.com/?l=P111071&#034;" TARGET="_blank"  rel="nofollow">http://c3.paran.com/?l=P111071&#034;</A>&gt;LPG가격 인상&lt;/a&gt;&lt;/li&gt; <br/>&nbsp;&lt;li&gt;&lt;a href=&#034;<A HREF="http://c3.paran.com/?l=P111072&#034;" TARGET="_blank"  rel="nofollow">http://c3.paran.com/?l=P111072&#034;</A>&gt;임창용 19세이브&lt;/a&gt;&lt;/li&gt; <br/>&lt;/ul&gt; <br/>&lt;ul&gt; <br/>&nbsp;&lt;li class=&#034;x&#034;&gt;&lt;a href=&#034;<A HREF="http://c3.paran.com/?l=P111073&#034;" TARGET="_blank"  rel="nofollow">http://c3.paran.com/?l=P111073&#034;</A>&gt;한전 납품비리&lt;/a&gt;&lt;/li&gt; <br/>&nbsp;&lt;li&gt;&lt;a href=&#034;<A HREF="http://c3.paran.com/?l=P111074&#034;" TARGET="_blank"  rel="nofollow">http://c3.paran.com/?l=P111074&#034;</A>&gt;유재석 웨딩사진&lt;/a&gt;&lt;/li&gt; <br/>&lt;/ul&gt; <br/>&lt;ul&gt; <br/>&nbsp;&lt;li class=&#034;x&#034;&gt;&lt;a href=&#034;<A HREF="http://c3.paran.com/?l=P111075&#034;" TARGET="_blank"  rel="nofollow">http://c3.paran.com/?l=P111075&#034;</A>&gt;채은정 비키니&lt;/a&gt;&lt;/li&gt; <br/><br/>&nbsp;&lt;li&gt;&lt;a href=&#034;PD&#039;&gt;<A HREF="http://c3.paran.com/?l=P111076&#034;" TARGET="_blank"  rel="nofollow">http://c3.paran.com/?l=P111076&#034;</A>&gt;PD수첩 압수영장&lt;/a&gt;&lt;/li&gt; <br/>&lt;/ul&gt; <br/>&lt;ul&gt; <br/>&nbsp;&lt;li class=&#034;x&#034;&gt;&lt;a href=&#034;<A HREF="http://c3.paran.com/?l=P111077&#034;" TARGET="_blank"  rel="nofollow">http://c3.paran.com/?l=P111077&#034;</A>&gt;신혼부부 주택&lt;/a&gt;&lt;/li&gt; <br/>&nbsp;&lt;li&gt;&lt;a href=&#034;<A HREF="http://c3.paran.com/?l=P111078&#034;" TARGET="_blank"  rel="nofollow">http://c3.paran.com/?l=P111078&#034;</A>&gt;사제단 시국미사&lt;/a&gt;&lt;/li&gt; <br/>&lt;/ul&gt; <br/>&lt;/div&gt; <br/>&lt;script type=&#034;text/javascript&#034;&gt; var hotKeyword = new scrolling(&#034;jFavList&#034;,3000,1,1,18); &lt;/script&gt; <br/><br/>&lt;div class=&#034;rollBtn&#034; onmouseover=&#034;hotKeyword.div.isover=true;&#034; onmouseout=&#034;hotKeyword.div.isover=false;&#034;&gt; <br/>&nbsp; &lt;a class=&#034;previous&#034; onclick=&#034;hotKeyword.prev();&#034; title=&#034;위로&#034;&gt;[↑]&lt;/a&gt; <br/>&nbsp; &lt;a class=&#034;next&#034; onclick=&#034;hotKeyword.next();&#034; title=&#034;아래로&#034;&gt;[↓]&lt;/a&gt; <br/>&lt;/div&gt; <br/>&lt;/div&gt;[/CODE]]]></description>
<dc:creator>MintState</dc:creator>
<dc:date>Wed, 06 Apr 2011 11:33:15 +0900</dc:date>
</item>


<item>
<title>Select 객체 추가 삭제</title>
<link>https://go3.co.kr/mintbbs/bbs/board.php?bo_table=javascript&amp;amp;wr_id=182</link>
<description><![CDATA[[U]Select 객체 추가 삭제[/U]<br/><br/>가끔씩 select의 객체를 컨트롤할 경우가 있죠.<br/>아래 예제를 참고 하시면 될것 같습니다.<br/><br/>[CODE html]&lt;html&gt;<br/>&lt;head&gt;<br/>&lt;title&gt; select 객체 예제 &lt;/title&gt;<br/>&lt;script language=&#034;JavaScript&#034;&gt;<br/>var job = new Array(&#034;고등학생&#034;,&#034;대학생&#034;,&#034;대학원생&#034;,&#034;회사원&#034;,&#034;교수&#034;,&#034;정당인&#034;)<br/>function test() {<br/>	var str=&#034;리스트 원소의 갯수는 &#034;<br/>	str += document.myform.job.options.length<br/>	str += &#034;\n&#034;<br/>	str += &#034;선택한 값은\n&#034;<br/>	str += document.myform.job.options.selectedIndex<br/>	str += &#034;\n&#034;<br/>	str += document.myform.job.value<br/>	alert(str)<br/>}<br/>function sAdd(srcList, nTxt, nTxt2) {<br/>	if(nTxt != &#034;&#034;) {<br/>		new_option = new Option(nTxt,nTxt2);<br/>		srcList.options.add(new_option,0);<br/>		alert(nTxt+&#034;를 추가하였습니다&#034;);<br/>	}<br/>}<br/><br/>function sDel(srcList){<br/>	for( var i =0; i &lt; srcList.options.length ; i++ ) { <br/>		if ( srcList.options[i] != null && ( srcList.options[i].selected == true ) ) {<br/>			alert(srcList.options[i].text + &#034;를 삭제하였습니다&#034;);<br/>			srcList.options[i] = null;<br/>		}<br/>	}<br/>}<br/><br/>function sDel2(srcList){<br/>	// Select Box all delete<br/>	for( var i = srcList.options.length ; i &gt;= 0; i-- ) { <br/>		srcList.options[i] = null;<br/>	}<br/>}<br/>&lt;/script&gt;<br/>&lt;/head&gt;<br/>&lt;body&gt;<br/>당신의 직업을 선택하세요.<br/>&lt;form name=&#034;myform&#034;&gt;<br/>&lt;select name=&#034;job&#034; size=4&gt;<br/>	&lt;option value=&#034;고등학생&#034; selected&gt; 고등학생<br/>	&lt;option value=&#034;대학생&#034;&gt; 대학생<br/>	&lt;option value=&#034;대학원생&#034;&gt; 대학원생<br/>	&lt;option value=&#034;회사원&#034;&gt; 회사원<br/>	&lt;option value=&#034;교수&#034;&gt; 교수<br/>	&lt;option value=&#034;정당인&#034;&gt; 정당인<br/>&lt;/select&gt;<br/>&lt;input type=&#034;button&#034; value=&#034;확인&#034; onClick=&#034;test()&#034;&gt;<br/>&lt;input type=&#034;button&#034; value=&#034;삭제&#034; onclick=&#034;sDel( this.form.job)&#034;&gt;<br/>&lt;input type=&#034;button&#034; value=&#034;모두삭제&#034; onclick=&#034;sDel2( this.form.job)&#034;&gt;<br/>&lt;br&gt;<br/>직업 명 : &lt;input type=&#039;textbox&#039; name=&#039;ntxt&#039; value=&#039;&#039;&gt; text &lt;br&gt;<br/>직업 키 : &lt;input type=&#039;textbox&#039; name=&#039;ntxt2&#039; value=&#039;&#039;&gt; value &#038;nbsp;<br/>&lt;input type=&#034;button&#034; value=&#034;추가&#034; onclick=&#034;sAdd(this.form.job, this.form.ntxt.value, this.form.ntxt2.value)&#034;&gt;<br/>&lt;/form&gt;<br/>&lt;/body&gt;<br/>&lt;/html&gt;[/CODE]]]></description>
<dc:creator>MintState</dc:creator>
<dc:date>Fri, 23 Jul 2010 11:43:10 +0900</dc:date>
</item>


<item>
<title>숫자에 컴마(,) 쓰고 한글로 숫자 표시</title>
<link>https://go3.co.kr/mintbbs/bbs/board.php?bo_table=javascript&amp;amp;wr_id=181</link>
<description><![CDATA[[U]숫자에 컴마(,) 쓰고 한글로 숫자 표시[/U]<br/><br/>[CODE html]&lt;html&gt;<br/>&lt;head&gt;<br/>&lt;script language=&#034;javascript&#034;&gt;<br/>function won_format(chknum,hanview) {<br/>		val = chknum.value;<br/>		re = /^[1-9][0-9]*$/;<br/>		var num = val.toString().split(&#039;,&#039;).join(&#039;&#039;);<br/>		if (!re.test(num)) {<br/>			chknum.value = &#039;&#039;;<br/>			if (hanview) document.getElementById(hanview).innerHTML = &#039;&#039;;<br/>		} else {<br/>			//num = num.split(&#039;,&#039;).join(&#039;&#039;);<br/>			var arr = num.split(&#039;.&#039;);<br/>			var num = new Array();<br/>			for (i = 0; i &lt;= arr[0].length-1; i++) {<br/>				num[i] = arr[0].substr(arr[0].length-1-i,1);<br/>				if(i%3 == 0 && i != 0) num[i] += &#039;,&#039;;<br/>			}<br/>			num = num.reverse().join(&#039;&#039;);<br/>			if (!arr[1]) chknum.value = num; else chknum.value = num+&#039;.&#039;+arr[1];<br/>			if (hanview) num2won(chknum,hanview);<br/>		}<br/>}<br/>function num2won(chknum,hanview) {<br/>		val = chknum.value;<br/>		var won = new Array();<br/>		re = /^[1-9][0-9]*$/;<br/>		var num = val.toString().split(&#039;,&#039;).join(&#039;&#039;);<br/>		if (!re.test(num)) {<br/>				chknum.value = &#039;&#039;;<br/>				document.getElementById(hanview).innerHTML = &#039;&#039;;<br/>		} else {<br/>				var price_unit0 = new Array(&#039;&#039;,&#039;일&#039;,&#039;이&#039;,&#039;삼&#039;,&#039;사&#039;,&#039;오&#039;,&#039;육&#039;,&#039;칠&#039;,&#039;팔&#039;,&#039;구&#039;);<br/>				var price_unit1 = new Array(&#039;&#039;,&#039;십&#039;,&#039;백&#039;,&#039;천&#039;);<br/>				var price_unit2 = new Array(&#039;&#039;,&#039;만&#039;,&#039;억&#039;,&#039;조&#039;,&#039;경&#039;,&#039;해&#039;,&#039;시&#039;,&#039;양&#039;,&#039;구&#039;,&#039;간&#039;,&#039;정&#039;);<br/>				for(i = num.length-1; i &gt;= 0; i--) {<br/>						won[i] = price_unit0[num.substr(num.length-1-i,1)];<br/>						if(i &gt; 0 && won[i] != &#039;&#039;) won[i] += price_unit1[i%4];<br/>						if(i % 4 == 0) won[i] += price_unit2[(i/4)];<br/>				}<br/>				for(i = num.length-1; i &gt;= 0; i--) {<br/>						if(won[i].length == 2) won[i-i%4] += &#039;-&#039;;<br/>						if(won[i].length == 1 && i &gt; 0) won[i] = &#039;&#039;;<br/>						if(i%4 != 0) won[i] = won[i].replace(&#039;일&#039;,&#039;&#039;);<br/>				}<br/>				won = won.reverse().join(&#039;&#039;).replace(/-+/g,&#039;&#039;);<br/>				document.getElementById(hanview).innerHTML = won;<br/>		}<br/>}<br/>&lt;/script&gt;<br/>&lt;/head&gt;<br/>&lt;body&gt;<br/>&lt;input type=&#034;text&#034; name=&#034;won&#034; style=&#034;text-align:right;&#034; onkeyup=&#034;won_format(this,&#039;hanview&#039;);&#034;&gt; 원 입력 &lt;span id=&#034;hanview&#034; style=&#039;background-color:#EEEEEE&#039;&gt;&lt;/span&gt; 원<br/>&lt;/body&gt;<br/>&lt;/html&gt;[/CODE]<br/><br/>컴마만 붙이고 한글은 표시하지 않을 경우 won_format(this,&#039;&#039;); 와 같이 쓰면 됩니다.]]></description>
<dc:creator>MintState</dc:creator>
<dc:date>Wed, 09 Jun 2010 14:20:44 +0900</dc:date>
</item>


<item>
<title>object 속성보기</title>
<link>https://go3.co.kr/mintbbs/bbs/board.php?bo_table=javascript&amp;amp;wr_id=180</link>
<description><![CDATA[[U]object 속성보기[/U]<br/><br/>[CODE js]for(var x in opener) {<br/>	alert([x, opener[x]]);<br/>}[/CODE]<br/><br/>속성수가 너무 많아서 alert로 찍으면 힘듭니다. 그냥 innerHtml로 보시길...<br/><br/>하나 찍어보니 속성이 이렇게나 많네요.<br/>useMap<br/>onselect<br/>name<br/>type<br/>defaultChecked<br/>height<br/>checked<br/>indeterminate<br/>size<br/>onload<br/>dataFormatAs<br/>dynsrc<br/>accept<br/>vrml<br/>start<br/>form<br/>width<br/>complete<br/>src<br/>onabort<br/>loop<br/>align<br/>onerror<br/>dataFld<br/>vspace<br/>maxLength<br/>alt<br/>dataSrc<br/>hspace<br/>readOnly<br/>status<br/>value<br/>lowsrc<br/>border<br/>onchange<br/>offsetLeft<br/>aria-multiselectable<br/>aria-activedescendant<br/>innerHTML<br/>onbeforecut<br/>all<br/>aria-describedby<br/>clientLeft<br/>aria-required<br/>ondatasetcomplete<br/>aria-flowto<br/>onresizestart<br/>aria-controls<br/>ondrag<br/>outerHTML<br/>onclick<br/>onmouseleave<br/>tagUrn<br/>onpaste<br/>clientWidth<br/>aria-setsize<br/>clientTop<br/>onmousedown<br/>onerrorupdate<br/>offsetHeight<br/>attributes<br/>onhelp<br/>onlayoutcomplete<br/>aria-valuemin<br/>scrollWidth<br/>runtimeStyle<br/>oncellchange<br/>isDisabled<br/>isTextEdit<br/>outerText<br/>sourceIndex<br/>firstChild<br/>document<br/>contentEditable<br/>onmoveend<br/>aria-valuemax<br/>aria-owns<br/>onmouseout<br/>aria-selected<br/>aria-valuenow<br/>onmovestart<br/>readyState<br/>onkeyup<br/>onmousewheel<br/>nodeValue<br/>onafterupdate<br/>aria-invalid<br/>ondataavailable<br/>ondatasetchanged<br/>children<br/>aria-pressed<br/>aria-labelledby<br/>ondeactivate<br/>parentElement<br/>aria-live<br/>innerText<br/>onlosecapture<br/>aria-relevant<br/>onkeypress<br/>tabIndex<br/>onrowsdelete<br/>ondblclick<br/>ondrop<br/>aria-posinset<br/>offsetParent<br/>ownerDocument<br/>parentTextEdit<br/>disabled<br/>onfilterchange<br/>onfocusout<br/>behaviorUrns<br/>role<br/>title<br/>onmousemove<br/>className<br/>tagName<br/>parentNode<br/>oncut<br/>offsetTop<br/>onmouseover<br/>isMultiLine<br/>onfocusin<br/>onfocus<br/>canHaveChildren<br/>onactivate<br/>aria-secret<br/>lastChild<br/>onrowexit<br/>ondragend<br/>onmove<br/>scrollHeight<br/>onselectstart<br/>oncopy<br/>aria-readonly<br/>aria-checked<br/>isContentEditable<br/>onresize<br/>filters<br/>onmouseenter<br/>onreadystatechange<br/>onbeforeupdate<br/>offsetWidth<br/>scrollTop<br/>language<br/>oncontextmenu<br/>aria-busy<br/>onmouseup<br/>lang<br/>scopeName<br/>onrowsinserted<br/>aria-level<br/>id<br/>ondragenter<br/>onpropertychange<br/>onscroll<br/>ondragstart<br/>nodeType<br/>onkeydown<br/>aria-expanded<br/>dir<br/>onbeforedeactivate<br/>style<br/>clientHeight<br/>hideFocus<br/>onblur<br/>aria-hidden<br/>oncontrolselect<br/>onbeforeeditfocus<br/>scrollLeft<br/>currentStyle<br/>accessKey<br/>onbeforeactivate<br/>nodeName<br/>previousSibling<br/>recordNumber<br/>onpage<br/>aria-disabled<br/>onbeforecopy<br/>ondragover<br/>onbeforepaste<br/>canHaveHTML<br/>ondragleave<br/>childNodes<br/>aria-haspopup<br/>onrowenter<br/>onresizeend<br/>nextSibling]]></description>
<dc:creator>MintState</dc:creator>
<dc:date>Thu, 29 Apr 2010 17:03:08 +0900</dc:date>
</item>


<item>
<title>비밀번호 보안등급 체크</title>
<link>https://go3.co.kr/mintbbs/bbs/board.php?bo_table=javascript&amp;amp;wr_id=179</link>
<description><![CDATA[[U]비밀번호 보안등급 체크[/U]<br/><br/>윤석규님이 아래 경로로 공개하신 내용입니다.<br/>[URL=http://ysksoft.textcube.com/entry/Javascript-비밀번호-보안레벨-체크]<A HREF="http://ysksoft.textcube.com/entry/Javascript-비밀번호-보안레벨-체크" TARGET="_blank"  rel="nofollow">http://ysksoft.textcube.com/entry/Javascript-비밀번호-보안레벨-체크</A>[/URL]<br/><br/>[ATTACH]562[/ATTACH]<br/><br/>몇가지 문자그룹을 만들고 그것에 포함된 그룹갯수를 가지고 체크를 하네요.<br/>한가지 그룹에만 속하면 낮음 세가지 그룹에 속하면 높음<br/>또는 페스워드 문자수를 가지고 체크를 합니다.<br/><br/>위 링크에 가시면 소스가 있습니다.]]></description>
<dc:creator>MintState</dc:creator>
<dc:date>Thu, 29 Apr 2010 16:48:33 +0900</dc:date>
</item>


<item>
<title>기본 공통 스크립트</title>
<link>https://go3.co.kr/mintbbs/bbs/board.php?bo_table=javascript&amp;amp;wr_id=178</link>
<description><![CDATA[[U]기본 공통 스크립트[/U]<br/><br/>어느사이트에 들어 있는것입니다.. 돌아다니는 것을 구해서 어디껀지는 모르겠지만. <br/>상당히 많은 내용이 있네요..<br/>참고하세요...<br/><br/>파일 첨부합니다.]]></description>
<dc:creator>MintState</dc:creator>
<dc:date>Fri, 16 Apr 2010 10:55:12 +0900</dc:date>
</item>


<item>
<title>textarea에 줄바꿈 금지와 글자수 제한</title>
<link>https://go3.co.kr/mintbbs/bbs/board.php?bo_table=javascript&amp;amp;wr_id=175</link>
<description><![CDATA[[U]textarea에 줄바꿈 금지와 글자수 제한[/U]<br/><br/>아주 간단 합니다..<br/><br/>[CODE html]&lt;script type=&#034;text/javascript&#034;&gt;<br/>function limitMemo(obj,cnt) {<br/>		if (obj.value.length&gt;cnt) obj.value = obj.value.substring(0, cnt);<br/>		document.getElementById(&#039;memoLength&#039;).innerHTML = cnt-obj.value.length; <br/>};<br/>&lt;/script&gt;<br/>&lt;div id=&#034;memoLength&#034;&gt;10&lt;/div&gt;<br/>&lt;textarea name=&#034;memo&#034; onKeyPress=&#034;javascript: if (event.keyCode==13) return false;&#034; onKeyUp=&#034;javascript: limitMemo(this, 10);&#034;&gt;&lt;/textarea&gt;[/CODE]]]></description>
<dc:creator>MintState</dc:creator>
<dc:date>Wed, 17 Feb 2010 13:50:01 +0900</dc:date>
</item>

</channel>
</rss>
