V
vunet.us
why am i unable to insert image background into a tr or td element in
IE using preloaded image object, like this:
var img = new Image();
img.src = 'blah.gif';
document.getElementById('someId').style.backgroundImage =
"url('"+img.src+"')";
<table><tr id='someId'><td>content</td></tr></table>
IE using preloaded image object, like this:
var img = new Image();
img.src = 'blah.gif';
document.getElementById('someId').style.backgroundImage =
"url('"+img.src+"')";
<table><tr id='someId'><td>content</td></tr></table>