简体   繁体   English

jQuery-使用Lightbox在类别页面上显示图像

[英]Jquery - displaying images on the category page using Lightbox

What do i have right now ... 我现在有什么 ...

I have a page X and on that I have different categories like A, B, C. Each category is represented by an image from it's gallery. 我有一个X页,上面有不同的类别,例如A,B,C。每个类别均由其图库中的图像表示。 Now when I click this category image a new page opens up with all the images from that category and when I click one of the images on this second page Jquery Lightbox comes into action and start doing it's magic. 现在,当我单击该类别图像时,将打开一个新页面,其中包含该类别中的所有图像,并且当我单击第二页中的图像之一时,Jquery Lightbox便开始起作用并开始发挥作用。

What, I want to do is ... 我想做的是 ...

When I click that category image on page X, instead of opening a new page with all the images from that category, I want Jquery Lightbox to come into action right on page X with all the images from the category I clicked. 当我在X页面上单击该类别图像时,我希望Jquery Lightbox在X页面上对我单击的类别中的所有图像都起作用,而不是使用该类别中的所有图像打开新页面。

Please help me acheive this 请帮我实现这个

Why not give jQuery Fancybox a try? 为什么不尝试一下jQuery Fancybox All you need to do is follow the simple step-by-step instructions here and you can have the same fancy-looking style on your website too. 您所要做的就是按照此处的简单分步说明进行操作,您也可以在网站上使用相同的外观样式。

There are some good examples on the homepage (towards the bottom of the page) that you might be interested. 主页上(页面底部)有一些您可能感兴趣的示例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM