0

I have next problem. I want to do on a background slideshow. So... I have a code and it works in all browsers, except ie. Images are displayed in series on the background. I don't know, why... Please, help me.

$(function() {

$('.fadein img').hide();
$('.fadein img:gt(0)').hide();
setInterval(function () {
    $('.fadein :first-child').fadeOut()
    .next('img')
    .fadeIn()
    .end()
    .appendTo('.fadein');
    var imageurl = $(".fadein img").attr("src");
    $(".html").css({
        'background' : '#000000 url("' +imageurl + '") no-repeat top left fixed',
        'background-size' : 'cover'
    });      
    $('.fadein img').hide();
}, 4000); 

});

pavel
  • 5
  • 4

0 Answers0