J
James Black
I am trying to fade a word out, so after 5 seconds then every 1/4 sec
it should fade by a small amount, until it is gone.
This works fine in Firefox, but IE never calls the function that
setTimeout points to.
I am using IE 6, btw, on WinXP SP2.
browserdetect=savedspan.filters? "ie" : typeof
savedspan.style.MozOpacity=="string"? "mozilla" : "";
if (browserdetect=="mozilla") {
savedspan.style.MozOpacity = 1.0;
setTimeout(fadeSaved, 5000);
} else if (browserdetect=="ie") {
//alert("gradeSavedResult: inside the IE part");
savedspan.filters.alpha.opacity = 1.0; // This should only be used
in ie
window.setTimeout("fadeSaved()", 5000);
}
function fadeSaved() {
alert("fadeSaved: ");
}
I tried it with 'setTimeout(fadeSaved, 5000)' also, but that didn't
work.
Any idea why setTimeout wouldn't be working on IE?
Thanx.
it should fade by a small amount, until it is gone.
This works fine in Firefox, but IE never calls the function that
setTimeout points to.
I am using IE 6, btw, on WinXP SP2.
browserdetect=savedspan.filters? "ie" : typeof
savedspan.style.MozOpacity=="string"? "mozilla" : "";
if (browserdetect=="mozilla") {
savedspan.style.MozOpacity = 1.0;
setTimeout(fadeSaved, 5000);
} else if (browserdetect=="ie") {
//alert("gradeSavedResult: inside the IE part");
savedspan.filters.alpha.opacity = 1.0; // This should only be used
in ie
window.setTimeout("fadeSaved()", 5000);
}
function fadeSaved() {
alert("fadeSaved: ");
}
I tried it with 'setTimeout(fadeSaved, 5000)' also, but that didn't
work.
Any idea why setTimeout wouldn't be working on IE?
Thanx.