12-10-2017, Saat: 01:24 AM
PHP Kod:
<script type="text/javascript">
<!--
// ***********************************************
// Bu kodu www.yufersu.com adresinden aldınız..
// ***********************************************
function IE(e) {
if (navigator.appName == "Microsoft Internet Explorer" && (event.button == "2" || event.button == "3")) {
alert('Telif hakkı!');
return false;
}
}
function NS(e) {
if (document.layers || (document.getElementById && !document.all)) {
if (e.which == "2" || e.which == "3") {
alert('Telif Hakkı!');
return false;
}
}
}
document.onmousedown=IE;document.onmouseup=NS;document.oncontextmenu=new Function("return false");
//-->
</script>
PHP Kod:
<script language="JavaScript1.2">
function disableselect(e){
return false
}
function reEnable(){
return true
}
//if IE4+
document.onselectstart=new Function ("return false")
//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
</script>
Yukarıdaki kod içerikleri seçip kopyalamayı önlemek için kullanılır.
