Script No Klik Kanan dan CoPas


Kali ini Tutorial Blogger akan memberikan trik "Anti CoPas dan Klik Kanan"

Ini script untuk "Anti CopAs", diletakkan bawah kode <head>
<script type="text/JavaScript">
//courtesy of tutorialblogger.blogspot.com
function killCopy(e) {
return false
}
function reEnable() {
return true
}
document.onselectstart=new Function ("return false")
if (window.sidebar) {
document.onmousedown=killCopy
document.onclick=reEnable
}
</script>

sedangkan untuk "Anti klik kanan"

<script language="JavaScript">
<!--
//Disable right mouse click Script
//By Tutorial Blogger ( elevenjune90@gmail.com This e-mail address is being protected from spambots. You need JavaScript enabled to view it ) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com
var message="Sorry, you can't Right Click!!!";
///////////////////////////////////
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>

NB: script untuk blogger, bisa langsung ditaruh di tambah gadget, untuk yang laen di taruh di bawah kode <head>.

subscribe

Subscribe

Monitor continues to update the latest from This blog directly in your email!

oketrik

1 komentar:

 
Tutorial Blogger Design by Trick and Tips Powered by Blogger