开发者

Problem with JCarouselLite in Chrome

I'm using JCarouselLite on my website www.peach-designs.com and my problem is when it loads in Chrome, the entire page doesn't load - just the navigation bar, rather than the image scroller I have. When I click 'Home on the navigation bar, everything displays fine (index.php), but not the initial load (which should ideally be index.php shouldn't it).

I have had advice that the problem is JCarousel, my other problem is, I have JCarouselLite with no control buttons or anything, and the code looks completely different to JCarousel. Is there anybo开发者_运维技巧dy who has encountered this problem with JCarouselLite who can help?

Hope you can help,

Kind Regards,

Snakespan


Try to use

$(window).load()

rather than

$(document).ready()

, it works for me!


Full working code after I applied Kainnan fix:

$(window).load(function () {
    $("#prodCarousel").jCarouselLite({
        auto: 7000,
        speed: 1500,
        scroll: 4,
        visible: 4
    });
}); 
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜