tuto : disable right click without alert


Ha oke . seperti mana yg ikut tuto aku . aku dh tk buat disable right click . sebub adek shiera dia mara sebab tkbule nak copy code . teheeee . ok langkah langkah nye ialah 

 log in > dashboard > design > add gedget > html / javascript

 copy and paste je code ni
<script language=javascript>
<!--
//Disable right click script III- By Renigade (renigade@mediaone.net)
//For full source code, visit http://www.dynamicdrive.com
var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")
// -->
</script>


 save . selamat mencuba ,

ok baii .

2 comments:

syahirah ramlee said...

HAhaha, god2 dengar ckap adek , suka la .

Bambam (: said...

@syahirah ramlee suka plak dya kan !

 
COPYRIGHT BY NURUL HAFIZA ©