tutorial:disable right click(x nk owg copy?)

allo kowg!!
kowg!!kowg!!
ary ny cik nayie ny nk ajo 2 bnde...
ny pon atas request kwn baik nayie,
ny tutorial yg 1st die minx...
japgi ad lgi..huhu..
ok2..kte truskn kpd pembelajaran kte ary ny...
(cewwah~mcm ckgu kat skola la plak..)
tao x disable right click 2 ap??
hah!meh sini nayie tunjok...



nyh la contoh menatang 2...haha..
ok,ikot step nayie elok2 yew...

step 1:kowg kne pegi Design>Add a Gadjet>HTML/java script
step 2:copy code yg nayie nk kasi kat bwh ny...



<script language='JavaScript'>
<!--

//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com

var message="ahah!how dare you,copycats!";

///////////////////////////////////
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>
 
step 3:pastekn code 2 dlm HTML/java script
step 4:SAVE!!
sudeh siap!!
tpy,mcm biasa,
ad pesanan!
yg wane merah 2,kowg bleh tukar kpd ayat kowg sndri...
ok!smpy sini jew..
nk wat tutorials yg lain plak..
good luck!! 
p/s:copy=Ctrl+C

Thanks for reading :)

No comments:

Post a Comment

don't write nasty word!!

Related Posts Plugin for WordPress, Blogger...