I’ve seen before on a non flash sites you can’t highlight text or copy text. is it a java script? can someone help. thanks
yes there are scripts that are able to do it http://www.dynamicdrive.com/dynamicindex9/noright3.htm
Try googling it first
Code does not work in Opera. FF and IE it works
@chris.jones: right, and that has nothing to do with not being able to highlite or copy text.
achually it does happen to fill 1 part of not being able to copy
no, because you can use ctrl+c.
hmm. results are mixed at best
- worked in FF until i did ctrl+a, then copied the text.
- didn’t work in ie7 until i allowed blocked content
- didn’t work in opera
not sure about ie6, safari, etc. of course, view source will also not be stopped by this.
although, i’m not really sure why you would want to prevent highlighting anyway.
Is there a reason you don’t want people to be able to copy your text?
I’m with bwh2 on this one. It’s like trying to prevent people for saving images from your website. There are ways around both even if you try to prevent it. All a person would need to do is view the source of the page and your text is there.
My rule of thumb is, if I don’t want people to be able to use the information I put online, then I don’t put it online.
great this code worked like a charm, didn’t test in Opera thou, but netscape IE , Mozilla works great
<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>
you can add another code that will not show source code
Also I am using frames so they won’t be able extract text from source code,
There are ways around that…
Frames… ugh. There are ways around that as well…
Don’t get me wrong I understand the reasons people use various techniques to try to prevent image and/or code theft, it’s just not my style. Adding more and more code just to prevent something like that makes little sense in my mind - and kind of defeats the purpose of using the internet. But I guess, to each his own.
Anyway I’m way off topic on this one, so… good luck.
haha, nice… that was just my first google result