Dashboard | +Follow

McJellyz Tutorialz.


★ Tutor : Disabled Right Click
Siapa sini kedekut ? macam saya ? mwahaha . disabled right click ada dua jenis . satu yg tiada message dan satu lagi kalau org tekan right click , kluar message seperti "Function disabled" or "Jangan copy!" . Saya guna yg takda message :D
Pergi Design > Add Gadget > HTML .
add code di bawah . pilih la antara dua eyh :)

Disable Right Click ( without message )

<script language=javascript>
<!--

//Disable right click script III- By Renigade (renigade@mediaone.net)
//For full source code, visit http://www.dynamicdrive.com

var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers(document.getElementById&&!document.all)) {
if (e.which==2e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")
// -->
</script>

Disable Right Click with 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>

yg JANGAN COPY tu tukar ngan ayat sendiri okayy (:
Photobucket

- Tutorial List
- Personal Blog

p/s ; This blog is for tutorials only.
p/s(ii) ; I'm more active on my personal blog.