I got this line in my javascript:
$("#botbg").css("background-image", "url(/png/" + epage + ".jpg)");
"botbg" is a div. is it possible to attach a callback to this function? I simply want other operations to wait till this is finished.
these werent succesfull:
$("#botbg").css("background-image", "url(/png/" + epage + ".jpg)").load(function(){
//...
});
$("#botbg").css("background-image", "url(/png/" + epage + ".jpg)").one("load", function(){
//...
});
$("#botbg").css("background-image", "url(/png/" + epage + ".jpg)").ready(function(){
//...
});