Discuss Text selection disable script and Opera flaw in the JavaScript Development forum on Dev Shed. Text selection disable script and Opera flaw JavaScript Development forum discussing JavaScript and DHTML, AJAX, and issues such as coding cross-browser JavaScript.
Posts: 22
Time spent in forums: 6 h 14 m 41 sec
Reputation Power: 0
Text selection disable script and Opera flaw
This script works fine on all other browsers except in Opera, if you drag mouse a little above the (starting of essay) "Evliliğe Dair" then the text can be selected. How to fix this flaw?
Posts: 22
Time spent in forums: 6 h 14 m 41 sec
Reputation Power: 0
Not really, if I add an another empty layer just above of the "Evliliğe Dair" then text selection completely disabled for Opera but I don't want to add such layer to my 1000+ pages.
Posts: 19,831
Time spent in forums: 6 Months 1 Day 19 h 19 m 2 sec
Reputation Power: 4192
Being able to prevent text selection can be useful for drag-and-drop scripts, but using it to prevent copy-and-pasting of text is just user-hostile. People can often just do a "Select All" and then a "Copy" anyway. And usually they could view the page's source to access the text as well.
The web is a free (well mostly) and open medium. Get used to it.
__________________
Spreading knowledge, one newbie at a time. I'm available for hire at Dynamic Site Solutions.
Posts: 22
Time spent in forums: 6 h 14 m 41 sec
Reputation Power: 0
Well if you spent 7 years on a site with original content then your site content becomes just a compilation of other forums and blogs you'd think different.
Posts: 1,860
Time spent in forums: 1 Month 2 Weeks 1 Day 17 h 49 m 4 sec
Reputation Power: 813
Hi,
there is no technical way to prevent people from "stealing" your content. None.
Try to contact those websites or their hosters, try to sue them, whatever. But this JavaScript stuff will get you nowhere. Even the most retarded Internet users know how to view the page source (as Kravvitz already said). And the more intelligent ones simply disable their JavaScript or fetch the site content directly through HTTP (without any browser involved).
So forget that "copyright script". All it does is irritate and annoy legitimate users and give the bad guys a good laugh. Actually, when a website doesn't allow me to do what I want to do, I'm out and won't come back. So this script might actually make you lose users.
What you're trying to do is kind of a contradiction in terms: When you publish something, it's public. Anybody can view and use the data in any way they want.
I understand your concerns, and it really is annoying to see content pop up somewhere else. But you're fighting on the wrong end.
By the way, the script also doesn't work in Chrome. Throw it away.
Posts: 1,860
Time spent in forums: 1 Month 2 Weeks 1 Day 17 h 49 m 4 sec
Reputation Power: 813
What are you here for when you don't care what we have to say? If you want useless help for nonsense scripts from the 90s, go to w3schools.
I can still select the text by simply clicking outside of the layers. And if I couldn't, I'd hide the layers in my browser. That's two clicks. I don't even have to view the source.