Wednesday, August 10, 2011

Disable Copy and Paste..

Heylow korang..

Adiela nak ajar korang satu tuto nie.. tuto disable copy and paste.. macam yang korang tau la kan.. walaupon kita letak disable right click, tapi still orang boleh klik CTRL+C untuk copy.. kan? Kan? Hehe.. so ari nie, adiela nak aja korang camne nak buat orang langsung xleh highlight content entry kita, xleh copy and xleh paste..

PERHATIAN: Sila klik CTRL+C untuk copy..

Step 1:
Pergi korang “DESIGN” >>>>>”EDIT HTML” >>>>> tick EXPAND WIDGET TEMPLATES

Step 2:
Cari code.. (CTRL+F)

<head>

Step 3:
Paste code nie pulak bawah/selepas code “<head>” tadi..


<!-- Disable Copy and Paste-->
<script language='JavaScript1.2'>
function disableselect(e){
return false
}
function reEnable(){
return true
}
document.onselectstart=new Function (&quot;return false&quot;)
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
</script>


Wallaa~ tu je.. siap.. save.. try.. hehe..

Selamat mencuba! ^^



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

Tinggal ciuman komen sini!

Related Posts Plugin for WordPress, Blogger...