View Full Version : No Highlight Script for Mozilla
MillerD08
05-28-2008, 02:34 AM
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.
MillerD08
05-28-2008, 03:08 AM
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
Can you provide that script so I can see how it works, please?
MillerD08
05-28-2008, 03:14 AM
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.
MillerD08
05-28-2008, 03:21 AM
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
MillerD08
05-28-2008, 03:22 AM
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. :D
MillerD08
05-28-2008, 03:28 AM
You are quite the genius. Thank you very much for your help. :)
Miller
Your welcome. :) Glad to Help. ;)
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.