开发者

accordion with expandable sections

开发者 https://www.devze.com 2023-02-24 22:09 出处:网络
I would like to create an accordion box with Javascipt and CSS. The expanded section should include a link that, when clicked, would enable this section already expanded to expand 开发者_运维问答even

I would like to create an accordion box with Javascipt and CSS. The expanded section should include a link that, when clicked, would enable this section already expanded to expand 开发者_运维问答even more without any vertical scroll bar. Is it possible? Thanks


Something like this, perhaps?

http://jsfiddle.net/Jaybles/2PSME/

You'll essentially want to take your existing accordion, and place 2 divs in the content area you want expanded. One will hold additional information (initially hidden) and the other will say "Click here for more". When you click that div, it disappears and causes the more info div to show. If you do this with a sliding animation, you will get the desired effect.


Of course it is possible. The get the thing done quicker there are a lot of resources available for you out there.

Have a look at http://jquery.com/ and look at the demos of flowplayer, they are actually pretty impressive : http://flowplayer.org/tools/demos/tabs/accordion.html

0

精彩评论

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