Sunday, August 7, 2011

Tutorial disable right click !

Hello ! wahh, lama tak membuat tutorial blog kan ? sori dekat korang yang request tapi aku tak buat buat lagi kan ? almaklum lahh, bizii katakan. now pon bizii, but chillexluuu, tutorial kimia, physics, math, science comp pon belungguk gi yang aku tak buat . bentar lagi lah aku buat. buat tutorial blog dulu. hehe.

haritu ada orang tanya  soklan ni kat formspring.me  :

and now, this is the solution. btw, sorii,sebab lambat giler nak wat . huhu.

ekceli ada dua jenis. so korang pilih jea nak jenis mana okay ? thanks :)

1. Design --> Add a gadjet ---> Html/JavaScript ---> then copy code bawah ni okay ? pilih lah jenis mana yang korang nak 


disable right click with message allert

<script language=javascript>

<!--



//Disable right click script III- By ShafiqahRashid (misluvcoklat.blogspot.com)
//For full source code, visit http://misluvcoklat.blogspot.com

var message="TAIP AMARAN ANDA DISINI";
///////////////////////////////////
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>nu=new Function("alert(message);return false")</script>
and

disabledright click without message alert

<script language=javascript><!--//Disable right click script III- By Shafiqah Rashid (misluvcoklat.blogspot.com)//For full source code, visit http://misluvcoklat.blogspot.comvar 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>

then, click sini sikit :)

okay, thnx . selamat mencuba .

p/s : this is autopublish entry .
LOVE ; ♥ misluvcoklat ♥

No comments: