简体   繁体   English

轮播点击图片库?

[英]Carousel Clickable Image Gallery?

I've searched everywhere and can't seem to find something related! 我到处搜索,似乎找不到任何相关内容! I'm doing a website for an Airline Company. 我正在为一家航空公司提供网站。 It goes more or less like this: 它或多或少是这样的:

http://i.stack.imgur.com/L4AD0.jpg http://i.stack.imgur.com/L4AD0.jpg

QUICK INFO: 快速信息:

Database with 4 fields: 具有4个字段的数据库:

  • 'id'(INT): simple AUTO INCREMENT ID. 'id'(INT):简单的AUTO INCREMENT ID。
  • 'thumbnail'(TEXT): route for a small size image of a City, used on the carousel. '缩略图'(TEXT):轮播中使用的城市小尺寸图片的路线。 Ex: img/bali/thumb/bali_thumb.jpg 例如: img / bali / thumb / bali_thumb.jpg
  • 'complete'(TEXT): route to a larger size of the thumbnail. 'complete'(文本):转到较大尺寸的缩略图。 Ex: img/bali/bali.jpg 例如: img / bali / bali.jpg
  • 'gallery'(TEXT): route to a directory with multiple images, to be used as a gallery. 'gallery'(TEXT):路由到包含多个图像的目录,用作画廊。 Ex: img/bali/gallery/ 例如: img / bali / gallery /

As you can see, there's a Carousel listing all the cities the Airline offers service to. 如您所见,其中有一个轮播,列出了航空公司提供服务的所有城市。 This is a Carousel library known as JCarousel. 这是一个称为JCarousel的Carousel库。 When people clicks on a determined city, the image from 'complete' loads on the DIV. 当人们点击确定的城市时,来自“完整”的图像会加载到DIV中。

MY QUESTION: 我的问题:

The Airline wants a change. 航空公司想要更改。 They want that when people clicks on a determined city, instead of loading just 1 image, it loads a GALLERY OF IMAGES. 他们希望当人们点击确定的城市时,而不是仅加载一张图像,而是加载图像库。 This has been driving me mad since last thursday, and I just can't find any solution for it. 自上周四以来,这一直使我发疯,而我只是找不到任何解决方案。 I've tried a lot of things, and haven't found the solution to it. 我已经尝试了很多事情,但是还没有找到解决方案。 I mean, I can make it load one image, but can't make it load a gallery. 我的意思是,我可以使其加载一张图像,但不能使其加载图库。

Thanks for taking the time to read this, I'm completely lost! 感谢您抽出宝贵的时间阅读本文,我完全迷路了! I hope this great community can help me find a solution :) 我希望这个伟大的社区能够帮助我找到解决方案:)

You will have to write some backend code, but I think YUI has an option to do that. 您将必须编写一些后端代码,但我认为YUI可以选择执行此操作。 There is support for a "multi-row" carousel. 支持“多行”轮播。 Maybe that's what you want? 也许那就是你想要的? ( http://developer.yahoo.com/yui/examples/carousel/csl_multirow_clean.html ) http://developer.yahoo.com/yui/examples/carousel/csl_multirow_clean.html

We had the same problem and could not find a suitable solution. 我们遇到了同样的问题,无法找到合适的解决方案。 I suspect you will have to do it yourself, as we had to. 我怀疑您将不得不像我们必须那样做。 We used jCarousel and integrated knockout.js to fire events when images in the carousel were clicked. 单击轮播中的图像时,我们使用了jCarousel和集成的kickout.js引发事件。

I'm afraid I have no sample code, but there are plenty of examples of how to use knockout.js here http://knockoutjs.com/ and it isn't too bad to integrate it into jcarousel 恐怕我没有示例代码,但是在http://knockoutjs.com/上有很多如何使用基因敲除的示例,将其集成到jcarousel中也不错

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

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