Script No Klik Kanan dan CoPas

Setelah sekian lama searching dan browsing kemana ja...akhirnya aku nemuin script untuk "Anti CoPas dan Klik Kanan"....

Ini script untuk "Anti CopAs", diletakkan bawah kode <head>

<script type="text/JavaScript">
//courtesy of priyonggofile.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>

Download script disini


sedangkan untuk "Anti klik kanan"

<script language="JavaScript">
<!--

//Disable right mouse click Script
//By Aden ( aden_pbg@yahoo.co.id 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!!! This page only to read, hopefully useful. by : aden ";

///////////////////////////////////
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>.

Download script disini

0 komentar:

Posting Komentar

Pengikut

Sponsor