javascript 搜索延迟加载 jQuery 幻灯片或:hacking cross-slide
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5412015/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Searching for a Lazy Loading jQuery Slideshow or: hacking cross-slide
提问by z3cko
I am trying to get a jquery slideshow to display images from flickr, fading and scrolling. Everything works fine, except I really need Lazy Loading of the images (just loading the images on demand).
我正在尝试使用 jquery 幻灯片来显示来自 flickr、淡入淡出和滚动的图像。一切正常,除了我真的需要延迟加载图像(仅按需加载图像)。
I am currently using jquery.cross-slide ( http://tobia.github.com/CrossSlide/) but unfortunately tobia is not working on the plugin anymore and also does not want to answer to questions.
我目前正在使用 jquery.cross-slide ( http://tobia.github.com/CrossSlide/) 但不幸的是 tobia 不再使用该插件,也不想回答问题。
I found an example of jquery.cycle, where image lazy loading is applied (see http://malsup.com/jquery/cycle/add3.html) is there any chance of hacking this feature into the source of cross-slide or is it not possible due to the architecture of the plugin? see the code here: https://github.com/tobia/CrossSlide/blob/master/jquery.cross-slide.js#L131
我找到了一个 jquery.cycle 的例子,其中应用了图像延迟加载(参见http://malsup.com/jquery/cycle/add3.html)是否有可能将此功能破解到交叉幻灯片的源中,或者是由于插件的架构,这是不可能的吗?看这里的代码:https: //github.com/tobia/CrossSlide/blob/master/jquery.cross-slide.js#L131
回答by Mattvic
For others looking for a slideshow that "lazyloads" images, here are 2 options:
对于正在寻找“懒加载”图像幻灯片的其他人,这里有 2 个选项:
- http://galleria.aino.se/- great slideshow, lots of options, not really lightweight
- http://reallysimpleworks.com/slideshow/- simple, works fine. I′m using this one now.
- http://galleria.aino.se/- 很棒的幻灯片,有很多选择,但不是很轻量级
- http://reallysimpleworks.com/slideshow/- 简单,工作正常。我现在正在使用这个。
回答by rix
I know this was posted 2 years ago, but jcarouFredSel would work:
我知道这是 2 年前发布的,但 jcarouFredSel 会起作用: