jQuery-具有colorbox的Flickr插件-画廊显示以前的照片 [英] jQuery - Flickr plugin with colorbox - gallery displays previous photos

查看:119
本文介绍了jQuery-具有colorbox的Flickr插件-画廊显示以前的照片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个插件,以显示从colorbox画廊中的api检索到的多张flickr照片集照片.

我已经真的关闭了(在一些不错的SO用户的帮助下!)

这个想法是,用户可以像这样输入html

    <div id="72157634235266773" class="thumbs"></div>   

    <div id="72157633471728555" class="thumbs"></div>

,其余部分由插件处理.

查看此小提琴: http://jsfiddle.net/eBGVV/5/

我的问题是,照片​​集2从此处的图像64开始,您可以使用向左箭头查看照片集1中的图像.理想情况下,每个缩略图图像都会启动一个仅包含与其照片集相匹配的照片的颜色框图库. ID.

有什么想法可以实现这一目标吗?

谢谢.

解决方案

我知道了.我错误地使用了rel属性将照片分组在一起.这是有效的:

$("a.gallery[rel=" + PhotoSetID +"]").colorbox();

这是一个有用的小提琴:

http://jsfiddle.net/eBGVV/6/

I'm working on a plugin to display multiple flickr photo set photos retrieved from the api in a colorbox gallery. I've gotten really close (with the help of some nice SO users!)

The idea is that the user can enter html like:

    <div id="72157634235266773" class="thumbs"></div>   

    <div id="72157633471728555" class="thumbs"></div>

and the plugin handles the rest.

Check out this fiddle: http://jsfiddle.net/eBGVV/5/

My issue is that Photo Set 2 here starts at image 64 and you can use the the left arrow to see the images in Photo Set 1. Ideally, each thumbnail image would launch a colorbox gallery of just the photos that match its photoset id.

Any ideas how to pull this off?

Thanks.

解决方案

I figured it out. I was using the rel property incorrectly to group the photos together. This is what worked:

$("a.gallery[rel=" + PhotoSetID +"]").colorbox();

here is a working fiddle:

http://jsfiddle.net/eBGVV/6/

这篇关于jQuery-具有colorbox的Flickr插件-画廊显示以前的照片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆