Disable right click


Disable right click with message
Dashboard > Design > Edit layout > Add a gadjet > html javacript & paste code bawah ny ke dalam ruangan tersebut.
<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="MESSAGE ANDA";
///////////////////////////////////
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>
MESSAGE ANDA tuu korang bole tukar dgn message yg korang suka :)
Disable right click without message
<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="JANGAN COPYY.";
///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}
function clickNS4(e){
if (document.layersdocument.getElementById&&!document.all){
if (e.which==2e.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>
Done <3
Thanks, welcome ^^

4 rama-rama ^^:

ain sharina ain sharina said... [Reply]

i use this one

♥Yana_idOra♥ ♥Yana_idOra♥ said... [Reply]

sy amik ek :)

Nurin :) Nurin :) said... [Reply]

akak , I took the one with no message but it seems doesn't work on my blog :/

KecHiKLiFe ♬ ♪ KecHiKLiFe ♬ ♪ said... [Reply]

jadi-jadi, kiterr sukerr.. terima kasih akak.. <3 :)
terima kasih banyak-banyak..

Post a Comment

Jadi tk?