04 March 2010
Disable Right Click Versi 2
hak milik
Sue
Kali nie Msue nak kongsi pula camna wat disable right klik yang lebih cool dari yang sebelum nie.fungsinye sama mcam sebelum nie..masih boleh copy lagi cuma stail die lain sikit.
Camni..
1. Login ke Blogspot.
2. Klik Layout - add a gadget - HTML/Javascript
3. Copy kod kat bawah nie pastu paste
<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="No Right-Click!";
///////////////////////////////////
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>
Note: Kat highligrt merah tu korang gantikan ngan ayat korang sendiri..
Selamat mencuba..
Via - Ceera
Camni..
1. Login ke Blogspot.
2. Klik Layout - add a gadget - HTML/Javascript
3. Copy kod kat bawah nie pastu paste
<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="No Right-Click!";
///////////////////////////////////
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>
Note: Kat highligrt merah tu korang gantikan ngan ayat korang sendiri..
Selamat mencuba..
Via - Ceera
Tinggalkan Komen Anda Disini