Ho trovato una soluzione migliore, più generale, a http://jquery.malsup.com/fadetest.html.
L'ho preso e adattato in un file JavaScript autonomo da includere nelle pagine che usano i metodi jQuery fade *().
//
// jQuery IE Fade Fix
//
// Adapted from code found at http://jquery.malsup.com/fadetest.html.
//
// This is only needed for IE 7 and earlier, so this is best added to your page using IE's conditional comments
// (http://msdn.microsoft.com/en-us/library/ms537512%28VS.85%29.aspx) as follows:
// <!--[if lt IE 8]><script type="text/javascript" src="jquery-ie-fade-fix.js"></script><![endif]-->
//
(function($) {
$.fn.fadeIn = function(speed, callback) {
if ($.isFunction(speed) && callback == undefined) {
callback = speed;
speed = 'normal';
}
return this.animate({opacity: 'show'}, speed, function() {
if ($.browser.msie)
{
this.style.removeAttribute('filter');
}
if ($.isFunction(callback))
{
callback.call(this);
}
});
};
$.fn.fadeOut = function(speed, callback) {
if ($.isFunction(speed) && callback == undefined) {
callback = speed;
speed = 'normal';
}
return this.animate({opacity: 'hide'}, speed, function() {
if ($.browser.msie)
{
this.style.removeAttribute('filter');
}
if ($.isFunction(callback))
{
callback.call(this);
}
});
};
$.fn.fadeTo = function(speed, to, callback) {
if ($.isFunction(speed) && callback == undefined) {
callback = speed;
speed = 'normal';
}
return this.animate({opacity: to}, speed, function() {
if (to == 1 && $.browser.msie)
{
this.style.removeAttribute('filter');
}
if ($.isFunction(callback))
{
callback.call(this);
}
});
};
})(jQuery);
EDIT: correzione Incorporated joeformd s' per i callback.
EDIT2: correzione aggiunto per caso angolo dove la velocità non è definito, ma è richiamata -Tomi
Be ', non è abbastanza nel senso che svanisce nel testo alias allora scatta il filtro fuori, ma funziona. Abbiamo bisogno di svanire anche il filtro! Dam IE. – chrisdillon
StackOverflow soffre di questo stesso problema (quando si fa clic su "carica nuove risposte"). Spero che una delle squadre veda questa risposta. –
Questo rappresenta un leggero miglioramento: http://malsup.com/jquery/cycle/cleartype.html – chrisdillon