Forum Moderators: open

Message Too Old, No Replies

How to make Show(hide) Example like msdn?

         

asdasddd

12:27 pm on Oct 7, 2004 (gmt 0)

10+ Year Member



Just like the 'ShowExample' in this link:

[msdn.microsoft.com...]

I don't know how to make it by looking at the source file. And I can't find 'ShowExample' in the source file. Is there anyone konw why?

Thanks for your help! Have a nice day!

restricted access

2:07 pm on Oct 7, 2004 (gmt 0)

10+ Year Member



An error occurred on the server when processing the URL. Please contact the system administrator.An error occurred on the server when processing the URL. Please contact the system administrator.

this is what I saw on that page when I clicked a link, that's easy to do : )

You can do show hide behaviors with javascript activating css display:none display:block events.

You have to use display instead of visibility because display pulls the invisible element out of the document flow, visibility leaves it in but just doesn't show it.

there are other ways to do that, all depends on how you want to code it. You can make the new page trigger the display:block for its nav with no javascript at all, just a body id trigger.

BlobFisk

5:13 pm on Oct 7, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



restricted access has hit the nail on the head! wrap the paragraph of text in a <div> (you can also put it in a paragrph, table, span...) and toggle the display of the element.

HTH

asdasddd

8:06 am on Oct 8, 2004 (gmt 0)

10+ Year Member



Thank you sir, I think I have got it.

By the way, I can open the link above, and I'm from China.

Thanks for all your help! Have a nice day!