-
No Highlight Script for Mozilla
I'm looking for no highlight script that works in Mozilla. I tried searching here, but the search came up with everything but what I was looking for. (Although the other information provided was also useful to me).
Any help in finding this much needed script is greatly appreciated.
Thank you in advance
Miller
-
-
I don't get what you want. Do you want a script that doesn't highlight? Or does highlight? And I don't get the only for Mozilla part.
-
-
I apologize for not being clear. I'm wanting a script that will prevent the user from highlighting the text on my website. I understand that if someone wanted the text they could get it by viewing the source, but I still would like to have it.
Right now I have the script that disables highlight, but it only works in Internet Explorer.
Thank you Nile!
Miller
Last edited by MillerD08; 05-28-2008 at 03:09 AM.
Reason: Left out more information
-
-
Can you provide that script so I can see how it works, please?
-
-
Sure no problem. This is my first time so please pardon me if I mess it up lol.
Miller
<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>
-
-
This code works perfectly with FireFox except for the fact I can click CTRL+A.
-
-
Hmm, it wouldn't work on mine. I appreciate you taking the time. I'll try to figure it out. I think it might be conflicted by my ancient no right click script (I know it doesn't really work lol)
Miller
-
-
Here is my site. I'm in Mozilla right now, and it allows me to highlight 100%.
http://www.bidbaby.net/
Miller
-
-
I think that the right click script, and the select script have to be above everyhing or in the header section if you have a head section. Then it should work.
Also when I right clicked, the message went up. But the right click menu still was there, so I can try to fix that mutilated script, I said try.
-
-
You are quite the genius. Thank you very much for your help. 
Miller
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks