สวัสดีครับ
ขอสอบถามทุกท่านครับว่า พอจะมีโค้ดป้องกันการก๊อบปี้ข้อความตัวไหน ที่ป้องกันการก๊อบจากพวกไอโฟนได้ไหมครับ
พอดีเว็บที่ทำอยู่ ค่อนข้างเป็นแนวที่เคร่งกับเรื่องลิขสิทธิ์ แต่โค้ดที่ใช้อยู่ ดันป้องกันได้แค่พวกวินโดกับแอนดรอยครับ แต่กันการก๊อบจากพวกไอโฟนไอแพดไม่ได้ (ผมก็ไม่รู้ว่าทำไม) เลยอยากจะรู้ว่า มันมีโค้ดตัวไหน ที่ป้องกันการก๊อบปี้ข้อความได้ครอบคลุมบ้างครับ
โค้ดที่ใช้อยู่ปัจจุบัน
<script language=JavaScript>
<!--
var message="ไม่อนุญาตให้ก๊อบปี้!";
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>
<script language="JavaScript1.2">
//Disable select-text script (IE4 , NS6 )
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>
ผมใช้โค้ดกับเว็บนี้ครับ
https://www.keangun.com/ ขอบคุณสำหรับคำตอบมากครับ