Kod:
<script type="text/javascript">
//sayfada yazı seçmeyi engelleme
var omitformtags=["input", "textarea", "select"]
omitformtags=omitformtags.join("|")
function disableselect(e){
if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)
return false
}
function reEnable(){
return true
}
if (typeof document.onselectstart!="undefined")
document.onselectstart=new Function ("return false")
else{
document.onmousedown=disableselect
document.onmouseup=reEnable
}
</script>
Google'dan arayıp böyle bir sonuç buldum. Chrome, Firefox, Internet Explorer'da çalışıyor fakat Opera'da çalışmıyor. Opera'ya nasıl uyumlu hale getirebilirim?