开发者

Expandable Divs/Paragraphs

I am looking to create an help section for my website and wish to use expandable divs so that when you click on a link it opens up below the link and when you click a separate link it closes the previous one and opens the other one below it?

I'm using asp.net web fo开发者_JAVA技巧rms and vb.

Any help is greatly appreciated.

Marc


Use some Javascript:

document.getElementById('yourdiv').style.display="none";

or to show it again:

document.getElementById('yourdiv').style.display="block";

More examples: http://programming.top54u.com/post/Javascript-Div-Collapse-Style-Using-Display-None.aspx

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜