Please login or register. Welcome to the Studio, guest!


Quick Links:


newBookmarkLockedFalling

Mithras

Mithras Avatar

****
Studio Member

600


July 2006
Hey, I was just wondering what the opposite of style.display="none" is in javascript. I've been trying to figure it out, but can't seem to get it working :P

Any help would be appreciated.



Support Rob Scuderi, the #1 Penguins Defender!

lucifer said:
"Behold: me! I have authority in this building."

Chris

Chris Avatar

******
Head Coder

19,519


June 2005
Most coders set it to "" (literally, nothing). In some cases, you can use "inline", in some "block", others "table".

msdn.microsoft.com/workshop/author/dhtml/reference/properties/display.asp

The explains it some-what nicely. I know Aaron/Derfleurer has a nice link, so wait for him to post it. :P

Mithras

Mithras Avatar

****
Studio Member

600


July 2006
Yay, thanks. All that searching, and I never checked microsoft.com :P


Support Rob Scuderi, the #1 Penguins Defender!

lucifer said:
"Behold: me! I have authority in this building."

Moose

Moose Avatar

****
Senior Member

449


August 2005
This link explains it more indepth:

www.quirksmode.org/css/display.html

You're probably only going to need to use block, inline, and none most of the time. :)
Greg says:
Coding music...
Greg says:
Hmm...
Greg says:
I wouldn't rule it out. :P
Chris 3.0 [New features? Yes.] says:
:P
Greg says:
If you think about machine code it's a bunch of 1s and 0s
Chris 3.0 [New features? Yes.] says:
Anything is possible.
Greg says:
Yeah try to code Metallica
Chris 3.0 [New features? Yes.] says:
:P Yeah, I'll get right on that... right after I learn to fly.

Aaron

Aaron Avatar
Bad Wolf

****
Dedicated Studio Member

859


November 2006
Aye, good ole quirky. ;)

Chris

Chris Avatar

******
Head Coder

19,519


June 2005
I didn't know QuirksMode had an article on that... heh. :P

Aaron

Aaron Avatar
Bad Wolf

****
Dedicated Studio Member

859


November 2006
I usually google "SUBJECT quirksmode" when I can't find a good tutorial elsewhere. :P

Mithras

Mithras Avatar

****
Studio Member

600


July 2006
Ya, thanks for the replies. I just needed something that made it so that when I clicked the user clicked a button, it either showed to hide a menu.

Thanks :)


Support Rob Scuderi, the #1 Penguins Defender!

lucifer said:
"Behold: me! I have authority in this building."

dev7
Guest
Well if you just want it to show up, style.display=""

Chris

Chris Avatar

******
Head Coder

19,519


June 2005
dev7 said:
Well if you just want it to show up, style.display=""


Not to be rude, but check out the last post dates. :P Also, read my first post.

dev7
Guest
:o Time flies when you aren't watching post dates. :P Sorry.

newBookmarkLockedFalling