var img = $("name of division")[0] style = img.currentStyle || window.getComputedStyle(img, false), bi = style.backgroundImage.slice(4, -1).replace(/['"]/g, "");