Tutorial : Disable Right Click With Message

salam w.b.t

hihihi, bru balek JB.
btw, dpt sentuh itu iPad dan dgn jakunnyr try spce yg 3D tuhh.
siyes, nothing 3D coz aq x pham.

okay, nieyh p'mintaan chekk Aimie
dye sruh aq watkn tuto nieyh, 

first) Login Blogger > Dashboard > Design > Page Elements > Add A Gadget > HTML/JavaScript

second) copy code bwh nieyh. pastekn kat HTML tuhh


<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="KORANG PUNYA MESSAGE";

///////////////////////////////////
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>
ATTENTION
Merah : tukarkn dgn ayat yg korg nk ltk bler visitor right click

Comments

Post a Comment

You are free to speak, but please own up to it :)