thisMenu.display == "block''

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

    #1

    thisMenu.display == "block''

    hello,

    i am trying to learn javascript.
    i found an example of an menu, but there is one thing i do not understand.

    in the source it says:

    ' if(thisMenu.dis play == "block"){...... '

    i do not understand what 'block' means.
    it is not an variable and there is no definition of 'block' in the script.

    can someone help me please,

    thanks


  • Evertjan.

    #2
    Re: thisMenu.displa y == "block' '

    Castal wrote on 17 feb 2005 in comp.lang.javas cript:
    [color=blue]
    > ' if(thisMenu.dis play == "block"){...... '
    >[/color]

    I thing it should be:

    if(thisMenu.sty le.display == "block")

    The CSS style "display" can be none, block, inline, ''

    --
    Evertjan.
    The Netherlands.
    (Replace all crosses with dots in my emailaddress)

    Comment

    • Michael Winter

      #3
      Re: thisMenu.displa y == "block' '

      Evertjan. wrote:

      [snip]
      [color=blue]
      > The CSS style "display" can be none, block, inline, ''[/color]

      And the rest. Granted, IE's lack of CSS 2 support render most of them
      useless, however you should certainly include list-item. Anyway, see
      the CSS 2 specification for a complete list
      (<URL:http://www.w3.org/TR/REC-CSS2/visuren.html#di splay-prop>).

      Mike

      --
      Michael Winter
      Replace ".invalid" with ".uk" to reply by e-mail.

      Comment

      • Castal

        #4
        Re: thisMenu.displa y == &quot;block' '

        > I thing it should be:[color=blue]
        >
        > if(thisMenu.sty le.display == "block")
        >
        > The CSS style "display" can be none, block, inline, ''[/color]

        thanks for your reaction.
        it is all clear to me now.

        castal


        Comment

        Working...