I have a Firefox 3.6.2 problem (3.5.x works just fine).
This is the code:
...
var newImage = new Image();
newImage.onload=function() {swapMapImg(newImage);};
newImage.src = newBackground;
...
function swapMapImg(newImage) {
alert('bingo');
}
Firefox 3.6.2 no longer fires off my onload event, any ideas?
I’m using Firefox 3.6.2 and your code works for me. Are you sure:
Is working? I mean, do you still see the image appear on the page? Because if the link’s broken,
onloadisn’t going to happen.