short and sweet, I'm trying to apply the variable "eld" outside of the script so that I can apply it to the whole page or on another page via include anyone know how I can do it? (document.write (exp1, exp2, exp3, ...))
$(window).load(function(){
var mapname = "de_dolls";
var eld;
$.get("backgrounds/" + mapname + "/1.jpg")
.done(function () {
eld = mapname;
}).fail(function () {
eld = "default";
});
document.write ( eld );