25 August 2012

Tutorial ClassicTemplate/Blogskin : Disable Right Click

السّلا م عليکم ورحمةالله وبرکة | Salam Sejahtera :)

Selalunya orang guna benda ni untuk mengelakkan orang copy anythings from their blog lah. So, diorang tak bagi orang right click. Tapi, kalau blog yang ada freebies, tutorial tu tak digalakkan pasang benda ni :p

1.Dahsboard > Template > Edit HTML
2.Tekan Ctrl+f serentak dan cari code ni
3.Copy code di bawah.
<script language=JavaScript>
<!--//Disable right mouse click Script
//By Dynamicdrive (renigade@nsimail.com)
//For full source code, visit http://www.dynamicdrive.com
var message="";
///////////////////////////////////
function clickIE4(){
if (event.button==2){return false;}}
function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){return false;}}}
if (document.layers){document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;}
else if (document.all&&!document.getElementById){document.onmousedown=clickIE4;}
document.oncontextmenu=new Function("return false")// -->
</script>
4.Pastekan di bawah code <head>
5.Preview & save.

4 comments:

Your words defines you