PDA

View Full Version : Please help me



1ka
07-14-2012, 04:20 AM
1) Script Title: Disable select-text script


///////////////////////////////////////////////
<script type="text/javascript">


/***********************************************
* Disable select-text script- Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

//form tags to omit in NS6+:
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>
///////////////////////////////////////////////


3) Describe problem: not disable selection buttons/links (IN OPERA BROWSER)

jscheuer1
07-14-2012, 04:48 AM
Please help me

Remove the script from your page. As you've already seen Opera can circumvent it. Other browsers can as well.

Even if it worked flawlessly in all browsers, users can still get your text anyway if they really want it, so why bother?

Whenever you add a script to a page, there's always the chance it might mess something else up.

To summarize, at best it's ineffective. At worst it may cause problems.