Results 1 to 3 of 3

Thread: Non-selectable text??

  1. #1
    Join Date
    Sep 2004
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Non-selectable text??

    Is it possible to make text Non-Selectable when it is displayed in a browser?

    Thanks

  2. #2
    Join Date
    Aug 2004
    Location
    Brighton
    Posts
    1,563
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Generally not.

    The only way to do it for EVERY browser and EVERY method is to make the text an image.

    Otherwise, FireFox users, View > Source and others can all select your text.

    cr3ative
    A retired member, drop me a line through my site if you'd like to find me!
    cr3ative media | read the stickies

  3. #3
    Join Date
    Nov 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Here's how I did it

    create an invisible text box:

    <input style="visibility:hidden;" type="text" id="selectme" value=" " />

    and add the script:

    <script>
    onmousemove = function(e){
    document.getElementById("selectme").select();
    }
    </script>


    of course, this traps the onMouseMove event - but it may suit some purposes.

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
  •