r i s h a h

rishah

meet the author


Hi. I'm Nur Rishah, seventeen, still! An architecture student at IIUM.






Tutorial : Disabled Right Click Without Message}
11 January 2012 | 5:09 PM | 0Comment

Hii ! :) Jom belajar macam mana nak suruh orang lain tak boleh copy ape2 dalam blog kita . Jadi , mari tengok yang rishah ajar kat bawah ok ? Ikot stepnya ^^

1. Sign in > Design > Page Elements > Add A Gadget > Html/JavaScript
2. Copy code di bawah : -
<script language=JavaScript>
<!--

//Disable right click script III- By Renigade (renigade@mediaone.net)
//For full source code, visit http://www.dauspozi.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>

3. Penuhkan code di atas ke dalam Html/JavaScript
4. Save . Dah siap !
^^ Comment tau bila dah jadi ^^
Kalau korang nak ada message bila ada orang nak copy boleh ke tuto INI!!

Bubye n Assalamualaikum