Sunday, July 31, 2011

Disable Right Click..

Hye sayang!

Ada sorang kawan blogger tanya adiela camne nak kasi orang tak dapat nak sukahati copy isi dalam blog..

Jadi tuto kali nie tentang Disable Right Click pulak okey.. tujuan disable right click nie adalah supaya korang dapat jaga hak penulisan korang..

PERHATIAN: sila klik CTRL+C untuk copy..

Step 1:
Pergi “DASHBOARD”>>>>>”DESIGN”>>>>>ADD GADGET (HTML/JavaScript)..

Step 2:
Paste code didalam kotak tu..


Disable Right Click (Ada Mesej)

<script language=javascript>
<!--

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

var message="TAIP MESEJ 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>

Disable Right Click (Takde Mesej)

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

Dah siap boleh SAVE! ^^



Makseh baca..suka? like okeyh and komen la :)

9 Comments:

aimie amalina said...

haiiit!
maceh yep2
eh..
nak cakap
salam ramadhan ye!
>____________<

Syahirah Suhaili said...

@aimie amalina

hehe..welkem dear..
selamat berpuasa jugak :D

farr said...

pa knk xpat pun?? =="

Syahirah Suhaili said...

@farr

ekk..xpat ka? kmk da coba 2,2 code ya..ok jak..hehe..cuba try gk :D

farr said...

dh try duak tiga empat kali.
sikpat.
*sdeh ehh*

Syahirah Suhaili said...

@farr

farr..kmk dah tuka kit coding ya..cuba try gik :D

farr said...

dah dpt. thanks ya :D

Related Posts Plugin for WordPress, Blogger...