How to disable text selection? (css?)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • kj

    How to disable text selection? (css?)





    Is there any way to disable text selection in a web page (or at
    least render it invisible to the user)?

    If there is a way to control how selected text and its background
    are rendered, then the desired effect could be achieved by setting
    these parameters to match those of regular text. In this way, even
    if text was selected, the user would not see that it was.

    (I thought that this is something that may be controlled through
    css, but I have not been able to find anything in my css book, or
    in my google searches. Maybe I'm not using the right search
    keywords.)

    Thanks!

    kj
  • David Dorward

    #2
    Re: How to disable text selection? (css?)

    kj wrote:[color=blue]
    > Is there any way to disable text selection in a web page (or at
    > least render it invisible to the user)?[/color]

    No. Leastways not with CSS or HTML, not in a reliable fashion, and not
    without really annoying many of your visitors.
    [color=blue]
    > If there is a way to control how selected text and its background
    > are rendered[/color]

    No

    --
    David Dorward <http://dorward.me.uk/>

    Comment

    • Daniel R. Tobias

      #3
      Re: How to disable text selection? (css?)

      kj wrote:[color=blue]
      > Is there any way to disable text selection in a web page (or at
      > least render it invisible to the user)?[/color]

      Yet another variant on the same old theme of "How do I force the user's
      browser to do something really annoying, or to disable some of its
      features?" I deal with that sort of thing in my site:

      An answer to the common newbie questions on whether a Web author can 'force' a browser to do things.


      --
      == Dan ==
      Dan's Mail Format Site: http://mailformat.dan.info/
      Dan's Web Tips: http://webtips.dan.info/
      Dan's Domain Site: http://domains.dan.info/

      Comment

      • Neal

        #4
        Re: How to disable text selection? (css?)

        On Fri, 13 Feb 2004 16:23:08 +0000 (UTC), kj <nomail@please. com> wrote:
        [color=blue]
        >
        >
        >
        >
        > Is there any way to disable text selection in a web page (or at
        > least render it invisible to the user)?
        >[/color]

        Post all your text as images.

        Don't uplload the page to the server.

        What do you want? Your content is so valuable it shouldn't be copied and
        pasted, sell a book.

        Comment

        • Barry Pearson

          #5
          Re: How to disable text selection? (css?)

          Neal wrote:[color=blue]
          > On Fri, 13 Feb 2004 16:23:08 +0000 (UTC), kj <nomail@please. com>
          > wrote:[color=green]
          >>
          >> Is there any way to disable text selection in a web page (or at
          >> least render it invisible to the user)?[/color]
          >
          > Post all your text as images.[/color]
          [snip]

          I wonder if there is any OCR software that can turn a screen-capture directly
          into ASCII text?

          It would appear to be a pretty simple extension to existing OCR capability. It
          would be just one more demonstration of how futile is this pursuit of
          uncopyable pages.

          --
          Barry Pearson


          This site provides information & analysis of child support & the Child Support Agency in the UK, mainly for lobbyists, politicians, academics & media.



          Comment

          • Spartanicus

            #6
            Re: How to disable text selection? (css?)

            "Barry Pearson" <news@childsupp ortanalysis.co. uk> wrote:
            [color=blue]
            >I wonder if there is any OCR software that can turn a screen-capture directly
            >into ASCII text?
            >
            >It would appear to be a pretty simple extension to existing OCR capability.[/color]

            No extension required, OCR software uses images as input.

            --
            Spartanicus

            Comment

            • Barry Pearson

              #7
              Re: How to disable text selection? (css?)

              Spartanicus wrote:[color=blue]
              > "Barry Pearson" <news@childsupp ortanalysis.co. uk> wrote:
              >[color=green]
              >>I wonder if there is any OCR software that can turn a screen-capture
              >>directly into ASCII text?
              >>
              >>It would appear to be a pretty simple extension to existing OCR
              >>capability.[/color]
              >
              > No extension required, OCR software uses images as input.[/color]

              I know! I meant use the screen-capture directly, rather than turning it into
              an image file first.

              Can I do shift + PrtScr then immediately have OCR software show the text in a
              window? (I'm just being lazy. I have Photoshop and turn screen captures into
              new image files a lot).

              --
              Barry Pearson


              This site provides information & analysis of child support & the Child Support Agency in the UK, mainly for lobbyists, politicians, academics & media.





              Comment

              • Spartanicus

                #8
                Re: How to disable text selection? (css?)

                "Barry Pearson" <news@childsupp ortanalysis.co. uk> wrote:
                [color=blue][color=green][color=darkred]
                >>>I wonder if there is any OCR software that can turn a screen-capture
                >>>directly into ASCII text?
                >>>
                >>>It would appear to be a pretty simple extension to existing OCR
                >>>capability .[/color]
                >>
                >> No extension required, OCR software uses images as input.[/color]
                >
                >I know! I meant use the screen-capture directly, rather than turning it into
                >an image file first.[/color]

                Screen captures are placed on the clipboard, thus it can be pasted into
                an OCR application without having to save it as a file first.

                --
                Spartanicus

                Comment

                • Brian

                  #9
                  Re: How to disable text selection? (css?)

                  Neal wrote:[color=blue]
                  > On Fri, 13 Feb 2004, kj <nomail@please. com> wrote:[color=green]
                  >> Is there any way to disable text selection in a web page (or at
                  >> least render it invisible to the user)?[/color]
                  >
                  > What do you want? Your content is so valuable it shouldn't be
                  > copied and pasted, sell a book.[/color]

                  ....and destroy all photocopy machines.

                  --
                  Brian (follow directions in my address to email me)


                  Comment

                  • Brian

                    #10
                    Re: How to disable text selection? (css?)

                    kj wrote:[color=blue]
                    > Is there any way to disable text selection in a web page[/color]

                    Not really. A better question is why you *want* to disable it.
                    [color=blue]
                    > (or at least render it invisible to the user)?[/color]

                    Not yet, but Mozilla is working (has worked?) on a ::selection pseudo
                    class.

                    --
                    Brian (follow directions in my address to email me)


                    Comment

                    • jake

                      #11
                      Re: How to disable text selection? (css?)

                      In message <ZxoXb.99$Dg7.6 @newsfep3-gui.server.ntli .net>, Barry Pearson
                      <news@childsupp ortanalysis.co. uk> writes[color=blue]
                      >Spartanicus wrote:[color=green]
                      >> "Barry Pearson" <news@childsupp ortanalysis.co. uk> wrote:
                      >>[color=darkred]
                      >>>I wonder if there is any OCR software that can turn a screen-capture
                      >>>directly into ASCII text?
                      >>>
                      >>>It would appear to be a pretty simple extension to existing OCR
                      >>>capability .[/color]
                      >>
                      >> No extension required, OCR software uses images as input.[/color]
                      >
                      >I know! I meant use the screen-capture directly, rather than turning it into
                      >an image file first.
                      >
                      >Can I do shift + PrtScr then immediately have OCR software show the text in a
                      >window? (I'm just being lazy. I have Photoshop and turn screen captures into
                      >new image files a lot).
                      >[/color]
                      Not the definitive test, but:

                      I thought I'd try using Print Screen Delux to create a file, and
                      Omnipage to do the OCR, with some cropping in Photoshop first in order
                      to get rid of the browser framing (I couldn't see any way to insert the
                      image into Omnipage from the clipboard).

                      The answer seems to be yes ............ and no.

                      Success depends on the size of the text and, hence, the number of pixels
                      making up each character.

                      I got quite 'reasonable' results on a page that used Tahoma font at
                      100%. Anything much smaller than that just produced too much rubbish.


                      regards.

                      --
                      Jake

                      Comment

                      • Barry Pearson

                        #12
                        Re: How to disable text selection? (css?)

                        Spartanicus wrote:[color=blue]
                        > "Barry Pearson" <news@childsupp ortanalysis.co. uk> wrote:
                        >[color=green][color=darkred]
                        >>>>I wonder if there is any OCR software that can turn a screen-capture
                        >>>>directly into ASCII text?[/color][/color][/color]
                        [snip][color=blue][color=green]
                        >>I know! I meant use the screen-capture directly, rather than turning
                        >>it into an image file first.[/color]
                        >
                        > Screen captures are placed on the clipboard, thus it can be pasted
                        > into an OCR application without having to save it as a file first.[/color]

                        Thanks, that makes sense.

                        --
                        Barry Pearson


                        This site provides information & analysis of child support & the Child Support Agency in the UK, mainly for lobbyists, politicians, academics & media.



                        Comment

                        • Philip Newton

                          #13
                          Re: How to disable text selection? (css?)

                          On Sat, 14 Feb 2004 11:02:20 +0000, Spartanicus <me@privacy.net > wrote:
                          [color=blue]
                          > "Barry Pearson" <news@childsupp ortanalysis.co. uk> wrote:
                          >[color=green]
                          > >I wonder if there is any OCR software that can turn a screen-capture directly
                          > >into ASCII text?
                          > >
                          > >It would appear to be a pretty simple extension to existing OCR capability.[/color]
                          >
                          > No extension required, OCR software uses images as input.[/color]

                          But they typically want a higher resolution than the screen provides.

                          I have seen software that does OCR from screen text, though: Babylon, a
                          little translation utility.

                          Cheers,
                          Philip
                          --
                          Philip Newton <nospam.newton@ gmx.li>
                          That really is my address; no need to remove anything to reply.
                          If you're not part of the solution, you're part of the precipitate.

                          Comment

                          • kj

                            #14
                            Re: How to disable text selection? (css?)





                            It's amusing to see a misdirected usenet overreaction in full
                            bloom... :)

                            Relax. It is obvious from what I wrote that I couldn't care *too
                            much* if users cut and paste content from my page (after all, I
                            *did* say that it would be OK with me just to modify the way selected
                            text is *rendered*, in which case all those "countersolutio ns"
                            involving scanners and OCRs are kind of ridiculous).

                            I just don't want certain clickable text (headers in a table, if
                            you must know) to change appearance if the user accidentally drags
                            the mouse over it as they click on it. I could turn these headers
                            into buttons, but I don't like the way buttons look (i.e. raised).
                            If there is a way to have a perfecly flat button, with text that
                            looked pretty much the same as the header in a regular HTML table,
                            that would be perfectly fine too.

                            kj


                            Comment

                            • Brian

                              #15
                              Re: How to disable text selection? (css?)

                              kj wrote:[color=blue]
                              > It's amusing to see a misdirected usenet overreaction in full
                              > bloom... :)[/color]

                              Since you didn't quote any of the message that you're replying to, I
                              have no idea what you're talking about.


                              --
                              Brian (follow directions in my address to email me)


                              Comment

                              Working...