开发者

jQuery cycle plugin paging + CSS3PIE

开发者 https://www.devze.com 2023-03-15 15:11 出处:网络
I am using the jQuery cycle plugin for a slideshow of images. With rounded bullets as pagers (because it\'s all the rage now so it seems). This worked perfectly in the \'modern\' browsers except for I

I am using the jQuery cycle plugin for a slideshow of images. With rounded bullets as pagers (because it's all the rage now so it seems). This worked perfectly in the 'modern' browsers except for IE. It is messing up the activePagerClass on the pagers.

Because IE can't do border开发者_如何学C-radius, I use the CSS3PIE behavior.


Changing

$.fn.cycle.updateActivePagerLink = function(pager,currSlide,clsName){
    $(pager).each(function(){
        $(this).children().removeClass(clsName).eq(currSlide).addClass(clsName);
     });
);

in the jQuery source code to

$.fn.cycle.updateActivePagerLink = function(pager,currSlide,clsName){
    $(pager).each(function(){
        $('a',this).removeClass(clsName).eq(currSlide).addClass(clsName);
    });
);

fixed it.

So it seems there is an issue with the children() function and the use of CSS3PIE. I'm not a fan of the behavior property and I would rather not use it, but the client wants rounded bullets in IE...

So I hope it helps somebody.

0

精彩评论

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