Bedazzled
Tutorial : disable right click
Tuesday, March 22, 2011 | 7:39 PM | 0 dazzle(s)
lalala ~ hai . ary ni i ajar korang buaad disable right clik

cara cara na buad disable right click
  • Dashboard>Design>Page Element>Add a Gadget>Html/Java script
  • Ctrl + C untuk copy code di bawah :

<script>
var message="Jangan copy lah !";
///////////////////////////////////
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>


  •  paste kan code di atas kat dalam kotak HTML/Javascript tu
  • anda bole tukar perkataan merah dia atas 'jangan copy la !' ikut suka anda 
  • preview and save :)


 kay thanks byebye


Labels:


OLD / NEW