Links in a scrollable list box...

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

    Links in a scrollable list box...

    is it possible to have URL links inside a list box ? WITHOUT the use of
    JavaScript?

    thanks for your help
    Mel


  • Michael Winter

    #2
    Re: Links in a scrollable list box...

    On Wed, 14 Jan 2004 08:47:15 -0500, Mel <mel@redolive.c om> wrote:
    [color=blue]
    > is it possible to have URL links inside a list box ? WITHOUT the use of
    > JavaScript?[/color]

    No. From the DTD[1]:

    <!ELEMENT OPTION - O (#PCDATA) -- selectable choice -->

    The text in parenthesises (#PCDATA) declares the contents of the OPTION
    element. PCDATA is just text.[2]

    Mike


    [1] Strict and Transitional are the same at this point.
    [2] You can include entity references (&quot; for example), but no
    elements (like <A> and <EM>). I don't have ISO-8879:1986, but what I just
    said is what I've taken from a post of someone that does :)

    --
    Michael Winter
    M.Winter@blueyo nder.co.invalid (replace ".invalid" with ".uk" to reply)

    Comment

    • David Dorward

      #3
      Re: Links in a scrollable list box...

      Mel wrote:
      [color=blue]
      > is it possible to have URL links inside a list box ? WITHOUT the use of
      > JavaScript?[/color]

      Why are you asking how to do something without JavaScript in a JavaScript
      newsgroup?!

      CSS:

      ul {
      height: 5em;
      width: 90%;
      border: solid 1px black;
      overflow: auto;
      }


      HTML:

      <ul>
      <li><a href="foo">Foo</a></li>
      <li><a href="foo">Foo</a></li>
      <li><a href="foo">Foo</a></li>
      <li><a href="foo">Foo</a></li>
      <li><a href="foo">Foo</a></li>
      <li><a href="foo">Foo</a></li>
      <li><a href="foo">Foo</a></li>
      <li><a href="foo">Foo</a></li>
      <li><a href="foo">Foo</a></li>
      <li><a href="foo">Foo</a></li>
      </ul>

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

      Comment

      Working...