Jquery JScrollPane 导致 IE 中出现错误

发布于 2024-10-17 19:20:46 字数 406 浏览 3 评论 0原文

我正在使用 jquery 制作我的第一个网站,并添加了 jscrollPane 插件。

在 Firefox 和 Safari 中一切正常,但在 IE 中(显然)它给了我一个我无法解决的问题:

当我调用“jscrollPane”函数时,它会导致 jquery 出现错误,并弄乱我的页面! (显然仅在 IE 中)

如果您想查看该页面,请点击以下链接: http://www.klaber.it/demo

只需单击“PRODOTTI”,然后单击第一个子菜单嗓音... 我通过一些测试发现!在 IE 状态栏上,当调用 jscrollPane 时抛出错误...

这让我发疯...
感谢您的帮助。
达里奥

I'm doing my first site using jquery and I added the jscrollPane plugin.

Everything fine in Firefox and Safari, but in IE (obviously) it gives me a problem I can't figure out:

When I call the "jscrollPane" function, it causes a fault in jquery and it mess up my page! (obviously only in IE)

If you want to see the page here's the link:
http://www.klaber.it/demo

Just click on "PRODOTTI" and then click the first submenu voice...
I figured out with some tests that the ! on IE status bar throw an error just when jscrollPane is called...

It's driving me crazy...
Thanks for help.
Dario

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

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

发布评论

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

评论(1

望喜 2024-10-24 19:20:46

您的 myfunctionNew.js 文件中有此代码

$("#datiProdotto").load("prodotto.asp?myPNum=" + showScheda, function() {
    $('#slider').show();
    $('#slider').nivoSlider({
        effect: 'sliceDown', //Specify sets like: 'fold,fade,sliceDown'
        slices: 1,
        animSpeed: 500, //Slide transition speed
        pauseTime: 4000,
        startSlide: 0, //Set starting Slide (0 index)
        directionNav: false, //Next & Prev
        directionNavHide: true, //Only show on hover
        controlNav: true, //1,2,3...
        controlNavThumbs: false, //Use thumbnails for Control Nav
        /*controlNavThumbsFromRel:false, //Use image rel for thumbs
        controlNavThumbsSearch: '.jpg', //Replace this with...
        controlNavThumbsReplace: '_thumb.jpg', //...this in thumb Image src
        keyboardNav:true, //Use left & right arrows
        pauseOnHover:true, //Stop animation while hovering
        manualAdvance:false, //Force manual transitions
        captionOpacity:0.8, //Universal caption opacity
        beforeChange: function(){},
        afterChange: function(){},
        slideshowEnd: function(){} //Triggers after all slides have been shown*/
    });
});

您需要删除此行末尾的尾随逗号。

controlNavThumbs: false,

这是我遇到的第一个错误。后面可能还会有更多。

You have this code in your myfunctionNew.js file

$("#datiProdotto").load("prodotto.asp?myPNum=" + showScheda, function() {
    $('#slider').show();
    $('#slider').nivoSlider({
        effect: 'sliceDown', //Specify sets like: 'fold,fade,sliceDown'
        slices: 1,
        animSpeed: 500, //Slide transition speed
        pauseTime: 4000,
        startSlide: 0, //Set starting Slide (0 index)
        directionNav: false, //Next & Prev
        directionNavHide: true, //Only show on hover
        controlNav: true, //1,2,3...
        controlNavThumbs: false, //Use thumbnails for Control Nav
        /*controlNavThumbsFromRel:false, //Use image rel for thumbs
        controlNavThumbsSearch: '.jpg', //Replace this with...
        controlNavThumbsReplace: '_thumb.jpg', //...this in thumb Image src
        keyboardNav:true, //Use left & right arrows
        pauseOnHover:true, //Stop animation while hovering
        manualAdvance:false, //Force manual transitions
        captionOpacity:0.8, //Universal caption opacity
        beforeChange: function(){},
        afterChange: function(){},
        slideshowEnd: function(){} //Triggers after all slides have been shown*/
    });
});

You need to remove the trailing comma from the end of this line.

controlNavThumbs: false,

That is the first error I've come across. There may be more after it.

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