Disappearing images in IE8 jQuery Cycle

后端 未结 4 2093
半阙折子戏
半阙折子戏 2020-12-04 01:36

http://www.lunatestsite.co.uk/products/lifestation

Cannot for the life of me fix this. Only in IE8 so far. I had the same issue on the homepage cycle, but managed to

4条回答
  •  孤街浪徒
    2020-12-04 02:26

    It sounds like the images are still loading.

    Try this...

    $(window).load(function() {
        $('#product-images, #front-slides').cycle({
            timeout: '7000',
            next: '#next',
            prev: '#prev',
            pager: '#pager',
            pagerAnchorBuilder: function(idx, el) {
                    return '';
                }
        });
     });
    

    window.load() will fire after the DOM and the page's images have loaded, where document.ready() only fires after the DOM has loaded.

提交回复
热议问题