Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: No Highlight Script for Mozilla

  1. #1
    Join Date
    May 2008
    Posts
    10
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default 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

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    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.
    Jeremy | jfein.net

  3. #3
    Join Date
    May 2008
    Posts
    10
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default

    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

  4. #4
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Can you provide that script so I can see how it works, please?
    Jeremy | jfein.net

  5. #5
    Join Date
    May 2008
    Posts
    10
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default

    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>

  6. #6
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    This code works perfectly with FireFox except for the fact I can click CTRL+A.
    Jeremy | jfein.net

  7. #7
    Join Date
    May 2008
    Posts
    10
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default

    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

  8. #8
    Join Date
    May 2008
    Posts
    10
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default

    Here is my site. I'm in Mozilla right now, and it allows me to highlight 100%.
    http://www.bidbaby.net/



    Miller

  9. #9
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    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.
    Jeremy | jfein.net

  10. #10
    Join Date
    May 2008
    Posts
    10
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default

    You are quite the genius. Thank you very much for your help.


    Miller

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •