Jquery Scrolling Carousel在ie7中不起作用

时间:2012-06-01 08:27:23

标签: jquery internet-explorer-7 carousel

我遇到了问题...

Jq Scrollingcarousel参考:http://www.convergent-evolution.co.uk/resources/jquery-plugins/scrolling-carousel/

这是我正在做的过程...... http://jsfiddle.net/BnwLh/1/

问题是在我的网站上运行顺利,除了IE7 ... 它仍然在ie7 ..

在jsfiddle的上述链接中,目前无法正常工作.. 任何人都可以解决它???


在这个旋转木马中,我正在尝试添加更多功能,所以我添加了左右两个按钮...... 如果你将鼠标悬停在左边,它应该向左移动,如果你将鼠标悬停在右边,它应该向右移动......

我正在尝试使用此代码:

$("a.prev-go").mouseover(function() {
$('#carousel-demo1').scrollingCarousel();
});
$("a.next-go").mouseover(function() {
$('#carousel-demo1').scrollingCarousel(); 
});

http://jsfiddle.net/xLhmS/1/

但它不适合我......

1 个答案:

答案 0 :(得分:1)

    $(document).ready(function() {
     $('#carousel-demo1').scrollingCarousel( {
        scrollerAlignment : "horizontal",
        autoScroll : true,
        autoScrollSpeed : 10000,
        scrollSpeed : "slow",
        scrollerOffset : 0,
        looped : true // for IE7 i put it to the end of the code and it worked well.
    }); 
}); // you forgot to add it at the end of the JQuery

Working example Jsfiddle

相关问题