css background image is not show change default picture

Solutions on MaxInterview for css background image is not show change default picture by the best coders in the world

showing results for - "css background image is not show change default picture"
Katarina
26 Nov 2019
1$("html").css({ "background-image": "url('../images/pattern%20copy.png'), url('../images/visuals/visual3-edit.jpg')", "background-position": "center", "background-repeat": "no-repeat", "background-attachment": "fixed"  });
Mattia
22 Sep 2020
1var imageURLs = $('div');
2imageURLs.each(function(index, element){
3    var imageURL = $(element).css('background-image').replace('url("', '').replace('")', '');
4    if (imageURL != "none"){
5        $.ajax({
6           url: imageURL,
7           type: 'HEAD',
8           error: function(){
9              //error handling for broken image url
10           }
11        });
12    }
13});
similar questions