From d56b3475c82dd424b1b41e47e23316a51f40e525 Mon Sep 17 00:00:00 2001 From: Colin Leroy Date: Wed, 22 Feb 2012 09:10:46 +0100 Subject: [PATCH] Fix accessibility issue on Internet Explorer in High contrast mode. IE in HC mode does not show CSS background-images. --- jquery.nivo.slider.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/jquery.nivo.slider.js b/jquery.nivo.slider.js index d42f05c..4e49354 100644 --- a/jquery.nivo.slider.js +++ b/jquery.nivo.slider.js @@ -87,6 +87,7 @@ //Set first background slider.css('background','url("'+ vars.currentImage.attr('src') +'") no-repeat'); + vars.currentImage.css("display","block"); //Create caption slider.append( @@ -342,11 +343,13 @@ } if(vars.currentSlide < 0) vars.currentSlide = (vars.totalSlides - 1); //Set vars.currentImage + vars.currentImage.fadeOut('fast'); if($(kids[vars.currentSlide]).is('img')){ vars.currentImage = $(kids[vars.currentSlide]); } else { vars.currentImage = $(kids[vars.currentSlide]).find('img:first'); } + vars.currentImage.fadeIn('fast'); //Set active links if(settings.controlNav){ @@ -691,4 +694,4 @@ $.fn._reverse = [].reverse; -})(jQuery); \ No newline at end of file +})(jQuery);