I have (had) the following DHTML script installed on my board (pasted in a few templates) in order to prevent visitors from highlighting (and copying) text:
<script language="JavaScript1.2">
//Disable select-text script (IE4+, NS6+)- By Andy Scott
//Exclusive permission granted to Dynamic Drive to feature script
//Visit http://www.dynamicdrive.com for this script
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>
And it works fine with Internet Explorer.
But, with Firefox, it creates the problem of not being able to post; because the little blinking cursor slash (you know what I'm talking about, right?) never shows up.
Anybody know how to fix this (Firefox) problem without removing the text-highlight script?
<script language="JavaScript1.2">
//Disable select-text script (IE4+, NS6+)- By Andy Scott
//Exclusive permission granted to Dynamic Drive to feature script
//Visit http://www.dynamicdrive.com for this script
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>
And it works fine with Internet Explorer.
But, with Firefox, it creates the problem of not being able to post; because the little blinking cursor slash (you know what I'm talking about, right?) never shows up.
Anybody know how to fix this (Firefox) problem without removing the text-highlight script?
Comment