图库在面板中查看幻灯片图片
我正在尝试使用 GalleryView 插件版本 2.0 将幻灯片添加到图片库。我遇到一个问题,幻灯片中的指定图片(缩略图)显示在面板中而不是 div (class="panel") 中的指定图片。
从示例和文档中可以明显看出,可以通过以下方式添加自定义幻灯片:
<ul class="filmstrip">
<li><img src="img/gallery/frame-01.jpg" alt="Effet du soleil" title="Effet du soleil" /></li>
<li><img src="img/gallery/frame-02.jpg" alt="Eden" title="Eden" /></li>
</ul>
我的画廊如下所示:
<div id="gallery_wrap">
<div id="photos" class="galleryview">
<div class="panel">
<img src="/upload/pic/IMG_02740_orig.jpg" />
</div>
<div class="panel">
<img src="/upload/pic/IMG_02740_orig.jpg" />
</div>
<ul class="filmstrip">
<li>
<img src="/upload/pic/IMG_02739_thumb.jpg" alt="Effet du soleil" title="Effet du soleil" /></li>
<li>
<img src="/upload/pic/IMG_02739_thumb.jpg" alt="Eden" title="Eden" /></li>
</ul>
</div>
</div>
我做错了什么?我基本上完全复制粘贴了示例,但它不起作用。有人在 GalleryView 中成功实现了这个幻灯片部分吗?
外观:
替代文本 http://img692.imageshack.us/img692/852/ galleryviewfilmstripima.jpg
您可以清楚地看到面板中是缩略图而不是原始图片(与缩略图完全不同的图片)。
我正在使用以下设置对象:
<script type="text/javascript">
$(function() {
$('#photos').galleryView({
panel_width: 800,
panel_height: 300,
frame_width: 100,
frame_height: 38,
transition_speed: 1200,
background_color: '#222',
border: 'none',
easing: 'easeInOutBack',
pause_on_hover: true,
nav_theme: 'custom',
overlay_height: 52,
filmstrip_position: 'top',
overlay_position: 'top'
});
});
</script>
I am trying to add filmstrip to the picture gallery using GalleryView plug-in, version 2.0. I have a problem that the specified pictures in filmstrip (thumbnail pictures) are displayed in a panel instead of the specified picture in div (class="panel").
As is evident from examples and documentation, custom filmstrip can be added in the following way:
<ul class="filmstrip">
<li><img src="img/gallery/frame-01.jpg" alt="Effet du soleil" title="Effet du soleil" /></li>
<li><img src="img/gallery/frame-02.jpg" alt="Eden" title="Eden" /></li>
</ul>
My gallery looks like this:
<div id="gallery_wrap">
<div id="photos" class="galleryview">
<div class="panel">
<img src="/upload/pic/IMG_02740_orig.jpg" />
</div>
<div class="panel">
<img src="/upload/pic/IMG_02740_orig.jpg" />
</div>
<ul class="filmstrip">
<li>
<img src="/upload/pic/IMG_02739_thumb.jpg" alt="Effet du soleil" title="Effet du soleil" /></li>
<li>
<img src="/upload/pic/IMG_02739_thumb.jpg" alt="Eden" title="Eden" /></li>
</ul>
</div>
</div>
What I am doing wrong? I have basically total copy-paste from example and it is not working. Does anyone successfully implement this filmstrip section in GalleryView?
How it looks:
alt text http://img692.imageshack.us/img692/852/galleryviewfilmstripima.jpg
You can clearly see that in panel is a thumbnail pic instead of the original (totally different picture than thumbnail).
I am using the following setting object:
<script type="text/javascript">
$(function() {
$('#photos').galleryView({
panel_width: 800,
panel_height: 300,
frame_width: 100,
frame_height: 38,
transition_speed: 1200,
background_color: '#222',
border: 'none',
easing: 'easeInOutBack',
pause_on_hover: true,
nav_theme: 'custom',
overlay_height: 52,
filmstrip_position: 'top',
overlay_position: 'top'
});
});
</script>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
以防万一问题与 GalleryView 2.0 有关,请参阅示例,那里图像列表准备方面发生了变化:您不再需要使用缩略图......
无论如何,您的画廊描述应该类似于
GalleryView 2.0 示例
Just in case issue is related to GalleryView 2.0, see samples for it, there are changes in images list preparation: you don't need to use thumbnails anymore...
Your'e gallery description should look like
anyway, see GalleryView 2.0 sample
可以有自定义缩略图:
但面板覆盖将不再起作用。 5 秒的代码阅读让我到达了这里:)
it IS possible to have custom thumbnails:
but panel-overlay won't work anymore. 5 Seconds of code reading brought me there :)