Tutorial : Disable Right Click.
Thursday, December 15, 2011 @ 11:47 PM


assalammualaikom.. hye korg!
haa! ni tuto ketige k?
erm.. nk taw cmne nk buad?
jom ikut yaya.. ;)

1)  sign in,dashboard,design,add a gadget ,html/javascript..
2) letakkn kod ini kt dlm kotak html uh k?


<script language=JavaScript>
<!--

//edit by unwanted


var message="Masukkan Mesej Yg nk Disampaikn";

///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
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("alert(message);return false")

// -->
</script>

3) letakkn korang punye message kt ruangn merah uh k?

bye.. tu  je.. assalammualaikkom..
kalaw korunk buad tak jdy, roger2 la kt comment..