T W I N K L E.
Tutorial : Disable Right Click;
Wednesday, December 8, 2010 | 9:19 PM | (0 notifications)
Hyep ! hehe, slamat tgah hry yeaa . :)
Hri ni saye nak bwat tutorial ttg disable right click.
Disable right click ni ade 3 jenis, wuuuuhuuuuuuu  > , <
Okey, let's start !

First

Bole copy tapi cuma takboleh right click jeh
1. Pegy dashboard.
2. Sila cari code

<body>

3. Exchage kod kat atas tuh dengan kod kat bawah ni

<body oncontextmenu="return false;">

4. Save ajela. Dah siap :)

Second

Boleh copy tapi takley right click, kalaw tekan right click nanti kuaa pop-up window

1. Korang pegi kat dashboard > design > add gadget > html/javascript
2. Paste kod kat bawah ni dkat html/javascript









<script language='JavaScript'>
<!--
able right mouse click Script //By
//Di
s Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com
var message="No Right-Click!";
///////////////////////////////////
function clickIE4(){
alert(message); retu
if (event.button==2) {rn false; } } function clickNS4(e){
entById&&!document.all){ if (e.which==2||e.which==3){ alert(m
if (document.layers||document.getEle message); return false; } } } if (document.layers){ document.captureEvents(Event.MOUSEDOWN);
nmousedown=clickIE4; } documen
document.onmousedown=clickNS4; } else if (document.all&&!document.getElementById){ document. ot.oncontextmenu=new Function("alert(message);return false") // -->
</script>


3. Text yang saye higlight tuh , korang bule tukakan ape korang nak tulis.
4. Save & done ! :)

Third

Takley tekan copy, takley right click


1. Pegi ke dashboard > design > edit html
2. Kmudian, cri code ni






<head>
 
3. Pastekan kod kt bwah ni dkat bwah kod kt ats ni
<script type="text/javascript">
//form tags to omit in NS6+:
//http://eking.in
var omitformtags=["input", "textarea", "select"]
omitformtags=omitformtags.join("|")
function disableselect(e){
if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)
return false
}
function reEnable(){
return true
}
if (typeof document.onselectstart!="undefined")
document.onselectstart=new Function ("return false")
else{
document.onmousedown=disableselect
document.onmouseup=reEnable
}
</script>

4. Lpas tu save aje. Da siap :)

Good Luck,
Lpas amik jgn lupa komen tau! :D



Photobucket

Labels: