Answers for "css background image is not show change default picture"

CSS
0

css background image is not show change default picture

$("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"  });
Posted by: Guest on June-12-2020
0

css background image is not show change default picture

var imageURLs = $('div');
imageURLs.each(function(index, element){
    var imageURL = $(element).css('background-image').replace('url("', '').replace('")', '');
    if (imageURL != "none"){
        $.ajax({
           url: imageURL,
           type: 'HEAD',
           error: function(){
              //error handling for broken image url
           }
        });
    }
});
Posted by: Guest on June-12-2020

Code answers related to "css background image is not show change default picture"

Browse Popular Code Answers by Language