E
edfialk
Hello all, I have this web application up at http://niceguy.wustl.edu/NEISGEI/EmisComp.
It's for visually comparing emission data.
So, I added this nice loading animated gif to the maps to show users
that the image is still downloading (some data can take a couple of
minutes). I found the script somewhere on the web.
Unfortunately, it doesn't work in Internet Explorer (surprise...)
So, I have 3 maps, 3 loading gifs, 3 loading divs. I'm only showing
the addLoadEvent function for one, but here's the script:
document.write('<div id="loading1"><img src="load.gif"></div>');
document.write('<div id="loading2"><img src="load.gif"></div>');
document.write('<div id="loading3"><img src="load.gif"></div>');
function addLoadEvent1(func) {
var oldonload = window.onload;
if (typeof window.onload != 'function') {
window.onload = func;
} else {
window.onload = function() {
if (oldonload) {
oldonload();
}
func();
}
}
}
addLoadEvent1(function() {
document.getElementById("loading1").style.display="none";
});
Any ideas what the IE problem is?
Thanks!
-Ed
It's for visually comparing emission data.
So, I added this nice loading animated gif to the maps to show users
that the image is still downloading (some data can take a couple of
minutes). I found the script somewhere on the web.
Unfortunately, it doesn't work in Internet Explorer (surprise...)
So, I have 3 maps, 3 loading gifs, 3 loading divs. I'm only showing
the addLoadEvent function for one, but here's the script:
document.write('<div id="loading1"><img src="load.gif"></div>');
document.write('<div id="loading2"><img src="load.gif"></div>');
document.write('<div id="loading3"><img src="load.gif"></div>');
function addLoadEvent1(func) {
var oldonload = window.onload;
if (typeof window.onload != 'function') {
window.onload = func;
} else {
window.onload = function() {
if (oldonload) {
oldonload();
}
func();
}
}
}
addLoadEvent1(function() {
document.getElementById("loading1").style.display="none";
});
Any ideas what the IE problem is?
Thanks!
-Ed