field.select() change color?

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

    #1

    field.select() change color?

    Hi, Thanks in advance for any help...

    I have the following script:

    function highlightsearch (field) {
    field.focus();
    field.select();
    }

    select and highlight the text in an input field...

    Is there any way you can change the 'fill' color of the
    highlighted selection to anything other than black?

    Regards

    ----------------------------------------------
    Posted with NewsLeecher v2.0 Beta 5
    * Binary Usenet Leeching Made Easy
    * http://www.newsleecher.com/?usenet
    ----------------------------------------------

  • Daniel Kirsch

    #2
    Re: field.select() change color?

    Invisible Man wrote:[color=blue]
    > Is there any way you can change the 'fill' color of the
    > highlighted selection to anything other than black?[/color]

    For Geckos:
    ::-moz-selection {
    background-color:#f00;
    }

    Daniel

    Comment

    Working...