Wednesday, 7 November 2012

Tutorial : Disable Right Click With Alert Message


hoi hoi..
esok isha cuti sekolah lagi sebab abang and akak form 5 spm !!!
good luck ye !!

now.. i will teach you how to disable right click !!!
cer korang right klik dekat blog isha 
nanti keluar lah ayat mengarut isha yg takde kene mengena dengan right klik kan ?
hahaha..
tuh lah dia yg isha nak ajar tu..

lets do the tuto !!!

1- dashboard -> layout -> add gadget -> pilih html/javascript
2- then copy kod ni , lepas dah copy,  paste kan ke ruang html tuh ye 
<script language=JavaScript> <!--//edit by unwanted
var message="MASUKKAN MSG KORANG";/////////////////////////////////// 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- save it !!! cer tengok right click blog korg ...
keluar tak msg tu :)

NOTA 
pink tu please tukar kepada ayat korg sendiri k :)

Thanks Sebab Baca Entry Isha . LIKE sikit and say Oyeah !

0 305 org comel komen ^_^:

Post a Comment