Sunday, November 21, 2010

Disable Right Click


Assalamualaikum :)

1) Buka Design Page Elements - Add a Gadjet


2) Then pilih HTML/JavaScripts dan copy paste code di bawah ni


<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="Opss! Na Na Na! No Right Click Babe~";
///////////////////////////////////
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>


3) Ayat dalam font merah tuh, korang tukar dengan ayat korang sendiri

4) Lastly tekan Save .Done! (:


Lots of Love,
Yana♥

No comments:

Post a Comment

Thanks for comment. Come again! ^_^