JQuery Galleria 和 IE7 的问题

发布于 2024-09-06 05:22:44 字数 1155 浏览 2 评论 0原文

我有一个问题,我不知道下一步该做什么。我有一个在 HTML 页面中使用 JQuery Galleeria 的网站,并在页面顶部自动播放 10 张图片。它使用经典主题并且是非常基本的功能。

我在本地 IIS 服务器和 IE7、Chrome、Opera、Firefox 的内部构建服务器上测试了它,效果很好。我将其发布到实时服务器上,但它在 IE7 中间歇性崩溃。它做了一些奇怪的事情:

  1. 它放大的图片比原始的大,即使我在我的JS中输入了“max_scale_ratio:1”。

  2. 它在我的缩略图旁边添加了任何其他浏览器都没有的前进和后退箭头。

  3. 在第一张图片之后停止显示缩略图。

所有这些都是间歇性的,如果我多次刷新页面,它可以自行纠正,或者有时会执行上述操作。

我在页面上的 JS 代码如下:

<script type="text/javascript">
$(document).ready(function() {
    // Load theme
    Galleria.loadTheme('themes/classic/galleria.classic.js');

    // run galleria and add some options
    $('#galleria').galleria({
        debug: true,
        image_crop: true,
        height: 397,
        max_scale_ratio: 1, //Ensures the picture crop doesn't zoom the picture
        autoplay: 8000, //Sets an autoplay interval of 8 seconds (8000)
        transition: 'fade',
        data_config: function(img) {
            return {
                description: $(img).next('p').html()
            };
        }
    });

我不知道为什么它只是在实时服务器上崩溃并在其他服务器上工作。我找不到任何显示相同问题的帮助来源。这是服务器问题还是我可以在代码中修复的问题?

I have a problem that I can't figure out what to do next. I have a website using JQuery Galleeria in an HTML page and 10 pictures autoplay scrolling at the top of the page. It is using the Classic theme and is very basic functionality.

I tested it on my local IIS server and on an internal build server in IE7, Chrome, Opera, Firefox and it worked fine. I published it on a live server and it intermittently broke in IE7. It does a few strange things:

  1. It blows up the picture bigger than the original, even though I put "max_scale_ratio: 1" in my JS.

  2. It adds forward and back arrows next to my thumbnails that aren't there for any other browser.

  3. It stops showing the thumbnails after the first picture.

All of this is intermittent and if I refresh the page several times it can correct itself or sometimes does the above.

My JS code on the page is as follows:

<script type="text/javascript">
$(document).ready(function() {
    // Load theme
    Galleria.loadTheme('themes/classic/galleria.classic.js');

    // run galleria and add some options
    $('#galleria').galleria({
        debug: true,
        image_crop: true,
        height: 397,
        max_scale_ratio: 1, //Ensures the picture crop doesn't zoom the picture
        autoplay: 8000, //Sets an autoplay interval of 8 seconds (8000)
        transition: 'fade',
        data_config: function(img) {
            return {
                description: $(img).next('p').html()
            };
        }
    });

I have no idea why it is just breaking on the live server and working on the others. I can't find any source of help that shows the same problem. Is it a server problem or something I can fix in the code?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

肩上的翅膀 2024-09-13 05:22:44

这似乎是 Galleria 的一个错误(正如 Galleria 支持人员向我提到的那样),他们正在解决。这是IE7的问题。建议的解决方案是使用 JSON 数组,而不是直接调用图片,直到 bug 得到修复。

Seems this is a bug with Galleria (as referenced by a Galleria support person to me) and they are addressing. It is an IE7 issue. The suggested solution is to use a JSON array instead of calling to the pictures directly until the bug is fixed.

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