Monday, March 30, 2009

tutorial disable right click

ok.. untuk ajlaaaaa.. dan sesape yg nk disable right click blog die.. mcm yg aku wat kat blog ni.. ini caranya..

ni care nk disable right click..

ko copy je coding kat 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="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>





da copy?
ok..


Selepas da copy.. ko paste la..


paste kat mane?
layout - page element - add a gadget - html/javascript






nota kaki:
selamat mencuba!!!~

4 comments:

Amazing AJ said...

hhahahahhaha

bagus2...i lap u la my prenn


ngeeee

Amazing AJ said...

weh x berjaya!!!!!!

cane???!!!!!!

Jamaludin Rajalu said...

Camane pulak kalau nak disable CTRL+U?

Anonymous said...

Terima kasih atas informasi menarik