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" });
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});