Tutorial: Disable Right-Click | Friday, 16 December 2011 | leave me ♥? |
Hello! Hehe.. Ari ni aku nak wat tuto pasal Disabled right click
Disable right click ni berfungsi bile orang nak copy ape yang ade kat blog kite.
So, bile ade orang nak copy or what, nanti ade kuar mesej ikowt ayat sendiri.
mcam notification la lebyh kurang..
Yang kat atas ni ikowt ayat Nana sendiri.. Tengok tu sampai kuar embah bagai.. haha..
Korunk nak try buad?
1. Pergi Dashboard >>Design>>Add Gadget>>Html/Java Script
2. Copy code kat bawah ni..
<script language=JavaScript>
<!--
//edit by unwanted
var message="AYAT KORUNK";
///////////////////////////////////
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. Korunk tukarkan yang warne Merah tu ikowt ayat korunk yer..
4. Dah siap, Save..