开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜