alternating colors in a DropDown/List Box

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

    #1

    alternating colors in a DropDown/List Box

    Hello All,

    Is it possible to have alternating color font for DropDown/List box in
    html?

    I have an FatClient application written in C, and I am trying to
    webify it. The application uses alternative color fonts in a
    dropdown/list box. So I was hoping to do the same for the web
    application.

    Thanks.
    Sarah.
  • Jukka K. Korpela

    #2
    Re: alternating colors in a DropDown/List Box

    sarah_haff@hotm ail.com (Sarah Haff) wrote:
    [color=blue]
    > Is it possible to have alternating color font for DropDown/List box
    > in html?[/color]

    No. But you can use CSS, with the usual caveats, and this in turn
    requires some modifications to HTML, since otherwise you cannot
    indicate which <option> elements are to be styled.

    For example, add class="even" to the 2nd, 4th, etc. <option>

    --
    Yucca, http://www.cs.tut.fi/~jkorpela/
    Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

    Comment

    • Jukka K. Korpela

      #3
      Re: alternating colors in a DropDown/List Box

      sarah_haff@hotm ail.com (Sarah Haff) wrote:
      [color=blue]
      > Is it possible to have alternating color font for DropDown/List box
      > in html?[/color]

      No. But you can use CSS, with the usual caveats, and this in turn
      requires some modifications to HTML, since otherwise you cannot
      indicate which <option> elements are to be styled.

      For example, add class="even" to the 2nd, 4th, etc. <option> element
      and use
      ..even { color: black; background: #ffc; }
      in CSS.

      --
      Yucca, http://www.cs.tut.fi/~jkorpela/
      Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

      Comment

      • Peter Ossmann

        #4
        Looking for a link checker that can handle login forms etc

        Hello All,

        I am looking for a program that checks for broken links on a webpage (I know
        there are many of these tools) but I haven´t found any tool that can handle
        login-forms and popup windows yet.

        Scenario: The Program shall open the site www.example.com , "click" on a
        login link, insert the login information and keep the cookie while searching
        for the broken links.

        P.S It doesn´t matter if its freeware, shareware or "regular" paysoft.

        Thanks for your help in advance!

        Peter Ossmann


        Comment

        • Thor Kottelin

          #5
          Re: Looking for a link checker that can handle login forms etc



          Peter Ossmann wrote:
          [color=blue]
          > I am looking for a program that checks for broken links on a webpage (I know
          > there are many of these tools) but I haven´t found any tool that can handle
          > login-forms and popup windows yet.[/color]

          Mercury Interactive SiteScope.

          Thor

          --

          Comment

          • Nick Kew

            #6
            Re: Looking for a link checker that can handle login forms etc

            In article <3f7ec67a$0$251 47$9b4e6d93@new sread2.arcor-online.net>, one of infinite monkeys
            at the keyboard of "Peter Ossmann" <thrym@gmx.ne t> wrote:
            [color=blue]
            > but I haven´t found any tool that can handle
            > login-forms and popup windows yet.[/color]

            it would be wrong for any general-purpose spidering tool to submit a Form.

            But if by the above you mean submit Basic Authentication credentials, it's a
            one-line change to Link Valet - or (probably) any other program that uses LWP.
            [color=blue]
            > Scenario: The Program shall open the site www.example.com , "click" on a
            > login link, insert the login information and keep the cookie while searching
            > for the broken links.[/color]

            Cookie? Sounds like you have a proprietary login system. More details
            needed for a meaningful reply.

            --
            Nick Kew

            In urgent need of paying work - see http://www.webthing.com/~nick/cv.html

            Comment

            • Peter Ossmann

              #7
              Re: Looking for a link checker that can handle login forms etc

              Thanks Thor!

              This was exactly what I was looking for! I an using "quick test" for quite a
              while now, I should have found that prog myself ;)

              Big thanks again!

              "Thor Kottelin" <thor@anta.ne t> schrieb im Newsbeitrag
              news:3F7ECCA5.1 4EB625E@anta.ne t...[color=blue]
              >
              >
              > Peter Ossmann wrote:
              >[color=green]
              > > I am looking for a program that checks for broken links on a webpage (I[/color][/color]
              know[color=blue][color=green]
              > > there are many of these tools) but I haven´t found any tool that can[/color][/color]
              handle[color=blue][color=green]
              > > login-forms and popup windows yet.[/color]
              >
              > Mercury Interactive SiteScope.
              >
              > Thor
              >
              > --
              > http://thorweb.anta.net/[/color]


              Comment

              Working...