2011-02-18 86 views
2

我正在做我的第一个网站使用jQuery,我添加了jscrollPane插件。Jquery JScrollPane在IE中导致错误

一切都在Firefox和Safari罚款,但在IE(明显)它给了我一个问题,我想不通:

当我称之为“JScrollPane的”功能,它会导致故障jQuery和它弄乱我的页面! (显然只能在IE)

如果你想在这里看到的页面的链接: http://www.klaber.it/demo

只需点击“PRODOTTI”,然后单击第一个子菜单的声音...... 我想通了一些测试那!在IE状态栏抛出一个错误,只是当jscrollPane被调用时...

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

回答

3

你有这样的代码在你的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, 

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