简体   繁体   中英

jPages plugin and IE8 not showing content

I'm having some issues with this plugin and I'd like to know if anyone had this problem before and some tip/help how to fix.

I have a page that uses jPages jQuery plugin. http://luis-almeida.github.com/jPages/

All works fine in all browsers (Safari, IE9, Firefox, Chrome,..) but in IE8 only show the first item of the pagination and not show the other ones.

If I disable the plugin, IE8 show all content. If I try to paginate, only show the first item.

I'm using the default configuration of the plugin.

Anyone have this problem before?

Thanks

Had this problem as well in ie8/ie7. Fixed by a callback function that sets the current items to have an opacity of 1. Depending on the structure of the container (I am using a in this example), you may have to change the jQuery line var onFocus = $("#coverflow_section li:eq(" + (i) + ")");.

$("div.pagination").jPages({
    containerID : "coverflow_section",
    callback    : ieFix,

});

function ieFix(pages, items)
{
    for(i = items.range.start - 1; i < items.range.end; i++)
    {               
        var onFocus = $("#coverflow_section li:eq(" + (i) + ")");
        onFocus.css({'opacity':1});
    }
}

IE8 also seems to have problems with eq(). I have solved the problem with this callback:

$("div.pagination").jPages({
    containerID : "coverflow_section",
    callback    : ieFix,
});

function ieFix(pages, items)
{
    for(i = items.range.start; i <= items.range.end; i++)
    {               
        var onFocus = $("#coverflow_section li:nth-child("+i+")");
        onFocus.css({'opacity':1});
    }
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM