30/01/2012
Disable right click
tutorial kali ni sebenrnye untuk ta nak kasi org copy copy entry kite.. ala . yg ta bole tkan butang kanan kat mouse tu kan .. hehe ., aku da dapat tawu cara die . ape lagi aku buat la tutorial pasal ni pulakkan ! (dikasi tawu oleh Nur Amni Steady ) thanks amni !1 - Dashboard - Design - Add a Gadget - HTML/ Jawa Script .
2- Paste kan code yg niyh !
<script language=javascript>
<!--
//edit by unwanted
var message="TULIS APA YG ANDA MAHU ";
///////////////////////////////////
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 dan Lihat hasilnye ! :)
Positive comment please: 0 comments