开发者

Expandable Divs/Paragraphs

开发者 https://www.devze.com 2023-02-17 05:01 出处:网络
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 previ

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

精彩评论

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

关注公众号