Cześć.
Sprawa jest o tyle trudna, że trzeba rozpoznawać przeglądarkę.
Tu masz gotowy kod:
Kod
var obj = document.getElementById("id_elementu");
var wartosc = "";
if (obj.currentStyle) { // DLA IE, Opery
wartosc = obj.currentStyle["backgroundImage"];
} else if (window.getComputedStyle) // Dla FF
{
wartosc = document.defaultView.getComputedStyle(obj,null).getPropertyValue("background-image");
}
alert(wartosc);