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♥

1 comment:

  1. Hmm it appears like your blog ate my first comment (it was super long) so I
    guess I'll just sum it up what I had written and say,
    I'm thoroughly enjoying your blog. I too am an aspiring blog blogger
    but I'm still new to everything. Do you have
    any helpful hints for inexperienced blog writers?
    I'd certainly appreciate it.

    ReplyDelete

Thanks for comment. Come again! ^_^