图库在面板中查看幻灯片图片

发布于 2024-08-21 03:17:14 字数 2224 浏览 3 评论 0原文

我正在尝试使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

亢潮 2024-08-28 03:17:14

以防万一问题与 GalleryView 2.0 有关,请参阅示例,那里图像列表准备方面发生了变化:您不再需要使用缩略图......
无论如何,您的画廊描述应该类似于

<div id="gallery_wrap">
   <ul id="gallery">
      <li>
         <span class="panel-overlay">Effet du soleil</span>
         <img src="/upload/pic/IMG_02740_orig.jpg" />
      </li>
      <li>
         <span class="panel-overlay">Eden</span>
         <img src="/upload/pic/IMG_02740_orig.jpg" />
      </li>
   </ul>
</div>

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

<div id="gallery_wrap">
   <ul id="gallery">
      <li>
         <span class="panel-overlay">Effet du soleil</span>
         <img src="/upload/pic/IMG_02740_orig.jpg" />
      </li>
      <li>
         <span class="panel-overlay">Eden</span>
         <img src="/upload/pic/IMG_02740_orig.jpg" />
      </li>
   </ul>
</div>

anyway, see GalleryView 2.0 sample

你曾走过我的故事 2024-08-28 03:17:14

可以有自定义缩略图:

<ul id="gallery">
   <li><img class="panel-content" src="path/to/image" /><img src="path/to/thumbnail" /></li>
</ul>

但面板覆盖将不再起作用。 5 秒的代码阅读让我到达了这里:)

it IS possible to have custom thumbnails:

<ul id="gallery">
   <li><img class="panel-content" src="path/to/image" /><img src="path/to/thumbnail" /></li>
</ul>

but panel-overlay won't work anymore. 5 Seconds of code reading brought me there :)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文