2018. 6. 14. 14:33
<head></head> 사이에 아래 소스를 삽입한다.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | <!-우클릭 금지 시작--> <script type="text/javascript"> var omitformtags=["input", "textarea", "select"] omitformtags=omitformtags.join("|") function disableselect(e){ if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1) return false } function reEnable(){ return true } if (typeof document.onselectstart!="undefined") document.onselectstart=new Function ("return false") else{ document.onmousedown=disableselect document.onmouseup=reEnable } </script> <!--우클릭 금지 종료--> | cs |
<body>를 아래와 같이 수정해준다.
1 | <body oncontextmenu="return false" onselectstart="return false" ondragstart="return false" id="tt-body-page"> | cs |