Tutorial : Disable Right Click

Tutorial : Disable Right Click

 Design --> Edit HTML -->CRTL+F search code
]]><//b:skin>
 Copy code kat bawah nie : hanya boleh copy yang dekat dalam blockquote aje
.post-body {
 -webkit-user-select : none ;
 -khtml-user-select : none ;
 -moz-user-select : none ;
 -ms-user-select : none ;
 user-select : none ;
}
.post-body blockquote {
 -webkit-user-select : text ;
 -khtml-user-select : text ;
 -moz-user-select : text ;
 -ms-user-select : text ;
 user-select : text ;
}
Kalau just tak bagi right click guna code bawah ni : sila paste code ini di bawah code <head>
<script>var isNS = (navigator.appName == "Netscape") ? 1 : 0;
if(navigator.appName == "Netscape") document.captureEvents(Event.MOUSEDOWN||Event.MOUSEUP);
function mischandler(){return false;}
function mousehandler(e){var myevent = (isNS) ? e : event;var eventbutton = (isNS) ? myevent.which : myevent.button;if((eventbutton==2)||(eventbutton==3)) return false;}document.oncontextmenu = mischandler;document.onmousedown = mousehandler;document.onmouseup = mousehandler;
</script>
atau pun boleh cari code <body>, gantikan code ini :
<body oncontextmenu="return false" onselectstart="return false" ondragstart="return false">
Preview dulu, tak ada error sila lah save. In Sha Allah no copycat lagi :P




1 comment

ღ Nice to see , nice to read ,
Once comment , I will hit you back ! :D
Its that true my poem ? HAHA. Ignore it..

Thanks , I love you all !