구글 블로거(blogger) 드래그 복붙 금지, 마우스 우측 클릭 방지 css 코드

구글 블로거 우측 클릭 방지 또는 드래그 복사 붙여넣기 (복붙)을 방지하는 법을 알려드리겠습니다.

아래 방법대로 따라해 주세요.




설정 -> 테마 -> HTML편집

입력창에서 Crtl + F 를 눌러 "</b:skin>" 를 찾아주세요.

그리고 </b:skin> 앞쪽에 아래 코드를 붙여넣어줍니다.

html, body, div, span, object,  
 form, input, h1, h2, button, label, a, img {  
  -moz-user-select: none;  
  -ms-user-select: none;  
  -webkit-user-select: none;  
  /* this will work for QtWebKit in future */  
  -webkit-user-drag: none;  
 }  
   
 input[type=text] {  
  -moz-user-select: text;  
  -webkit-user-select: text;  
 } 

그리고

입력창에서 Crtl + F 를 눌러 "</body>" 를 찾아주세요.

그리고 </body> 앞에
&lt;script language=javascript&gt;  
 &lt;!--  
   
 var message=&quot;&quot;;  
   
 function clickIE()  
 {  
  if (document.all) {  
   (message);return false;}  
 }  
   
 function clickNS(e)  
 {  
 if (document.layers||(document.getElementById&amp;&amp;!document.all)) {   
  if (e.which==2||e.which==3) {(message);return false;}}  
 }  
   
 if (document.layers){  
  document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}  
 else{  
  document.onmouseup=clickNS;document.oncontextmenu=clickIE;}  
 document.oncontextmenu=new Function(&quot;return false&quot;)  
   
 // --&gt;  
 &lt;/script&gt;  

를 입력해주시고 테마 저장을 눌러주시면 됩니다.













댓글 쓰기

0 댓글