D'laxy A'doris
| FOLLOW | DASHBOARD |

D'LAXY ADORIS

Hi I'm Adoris. Thanks for visiting this blog. Do leave your footprints at Cbox. Follow me?, i follow u back.

~ CLICK ~

TALK HERE


BLOG ARCHIEVE

CREDITS

Designer @ D'laxy Adoris
Basecodes @ Yasirah
Thanks to @ G | C | G
Tutorial : disable right clik With / Without Alert Message




# dashboard >> design >> add a gadget >> HTML/javascript .
# copy code nie .
With Alert Message
<style>body {cursor:crosshair} </style>

<script language=javascript>
<!--
//edit by unwanted

var message="Ayat korang";
///////////////////////////////////
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>
# yang wane pink tu korang tukar .

Without Alert Message  
<script language=JavaScript>
<!--
//Disable right click script III- By Renigade (renigade@mediaone.net)
//For full source code, visit http://www.dauspozi.com
var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.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> 
# paste dekat kotak HTML/javascript .
# dah siap , tekan save .

newer posts / older posts