Tutorial : Disable Right Click Without Message
Thursday, September 15, 2011 | 03:59 | 0 comments
Salam guys ,
We`ve meet again dlm Rancangan .. "Tutorial Bersama Atikah !!" hehe :-) Its been my fourth update of the day ! Atikah pon tak tahu kenapa Atikah bersemangat nak ajar korang ?! <--(cehh . ayat ambek dari post lepas ! xP ) Anyway , korang nak belajar ta macam mana nak buad "Disable Right Click Without Message" ? Atikah tahu lah yang korang dah belajar macam mane nk buad Disable Right Click .. Tapi yg tu ad message kan ? Haa , Kalau korang tak suka ada message , korang boleh ikut tutorial ni ..
Follow the step Okayy ? O.<
1) Dashboard --> Design --> Add Gadget --> html/javascript
2) Copy code ni dan pastekan di ruangan html/javascript
<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>Senang je kan ? Okayy , lepas dh pastekan .. Korang preview dulu taw baru Save !
Kalau menjadi tuh comment2 lah yer .. And if ad pertanyaan , comment aje :)
Selamat Mencuba ^,^