开发者

Looking for A Gallery Running On Javascript and/or JQuery Like One Click To Many Showcase [closed]

开发者 https://www.devze.com 2023-01-22 08:09 出处:网络
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post.
Closed. This question needs details or clarity. It is not currently accepting answers.

Want to improve this question? Add details and clarify the problem by editing this post.

Closed 6 years ago.

Improve this que开发者_StackOverflow社区stion

To see the example please visit the web page: spam and click one photo you will see many photos appearing. How can I make it using JS or JQuery or what else? I will use .NET for active server pages.


One method would be something like this.

HTML:

<style>dd { display: none; }</style>
<dl>
    <dt>Click me for images</dt>
    <dd><img src=""></dd>
    <dd><img src=""></dd>
    <dd><img src=""></dd>
    <dt>Click me for images</dt>
    <dd><img src=""></dd>
    <dd><img src=""></dd>
    <dd><img src=""></dd>
</dl>

JavaScript (jQuery):

$('dt').live('click', function() {
    $(this).nextUntil('dt').toggle();
});
0

精彩评论

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