<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[TNF : Tatter Network Foundation forum - 자바스크립트로 드래그, 우클릭 금지 시...]]></title>
		<link>http://forum.tattersite.com/ko/viewtopic.php?id=4679</link>
		<description><![CDATA[자바스크립트로 드래그, 우클릭 금지 시... 의 최근 RSS 글들.]]></description>
		<lastBuildDate>Mon, 19 Dec 2011 02:17:40 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[RSS 답글: 자바스크립트로 드래그, 우클릭 금지 시...]]></title>
			<link>http://forum.tattersite.com/ko/viewtopic.php?pid=41483#p41483</link>
			<description><![CDATA[<p>저도 오늘 이 생각을 하다가 네이버 지식인에서 해답을 찾았답니다.<br />3년이나 지난 글이지만 같은 의문을 갖고서 이 글을 읽게 되실 미래의 누군가를 위해 댓글을 쓰겠습니다. ㅋㅋ <br />body에 우클릭 드래그 금지 속성을 넣지 말고요,<br />article의 본문 부분(desc) 이 싸여 있는 div에다가<br />&lt;div align=&#039;justify&#039; oncontextmenu=&#039;return false&#039; ondragstart=&#039;return false&#039; onselectstart=&#039;return false&#039;&gt;<br />이렇게 속성을 주시면<br />textarea에서는 드래그가 된답니다!!<br />이거 찾아내서 행복해요 꺄아 &gt; &lt;</p>]]></description>
			<author><![CDATA[null@example.com (모미지)]]></author>
			<pubDate>Mon, 19 Dec 2011 02:17:40 +0000</pubDate>
			<guid>http://forum.tattersite.com/ko/viewtopic.php?pid=41483#p41483</guid>
		</item>
		<item>
			<title><![CDATA[자바스크립트로 드래그, 우클릭 금지 시...]]></title>
			<link>http://forum.tattersite.com/ko/viewtopic.php?pid=24303#p24303</link>
			<description><![CDATA[<p>아래 코드와 같이 자바스크립트로 드래그, 우클릭을 금지시켰는데<br />input이나 textarea에서도 드래그가 금지 되어버리는데;<br />input, textarea에서는 드래그를 허용시킬수 있는 방법없을까요?</p><br /><div class="codebox"><pre><code>//&lt;![CDATA[

// 드래그, 우클릭 금지 시키기 //
var omitformtags=[&quot;input&quot;, &quot;textarea&quot;, &quot;select&quot;]
omitformtags=omitformtags.join(&quot;|&quot;)
function disableselect(e){
if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)
return false
}
function reEnable(){
return true
}
if (typeof document.onselectstart!=&quot;undefined&quot;)
document.onselectstart=new Function (&quot;return false&quot;)
else{
document.onmousedown=disableselect
document.onmouseup=reEnable
}

document.oncontextmenu = function() {return false;};
document.onselectstart = function() {return false;};
document.ondragstart = function() {return false;};

// 접었다 폈다 하기 //
function showhide(obj) {
    var el = document.getElementById(obj);
    if ( el.style.display != &#039;none&#039; ) {
        el.style.display = &#039;none&#039;;
    } else {
        el.style.display = &#039;inline&#039;;
    }
};

//]]&gt;</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (멀더끙)]]></author>
			<pubDate>Wed, 20 Feb 2008 03:22:07 +0000</pubDate>
			<guid>http://forum.tattersite.com/ko/viewtopic.php?pid=24303#p24303</guid>
		</item>
	</channel>
</rss>
