469,287 Members | 2,705 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,287 developers. It's quick & easy.

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.display == "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
Jul 23 '05 #1
3 1681
Castal wrote on 17 feb 2005 in comp.lang.javascript:
' if(thisMenu.display == "block"){......'


I thing it should be:

if(thisMenu.style.display == "block")

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

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

Jul 23 '05 #2
Evertjan. wrote:

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


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#display-prop>).

Mike

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
Jul 23 '05 #3
> I thing it should be:

if(thisMenu.style.display == "block")

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


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

castal
Jul 23 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Jeff Thies | last post: by
18 posts views Thread by David Morris | last post: by
2 posts views Thread by Richard | last post: by
7 posts views Thread by Marc | last post: by
2 posts views Thread by ruby_bestcoder | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.