0
J'ai ajouté dans mes js:jquery .hide() fadeIn() par exemple glitch ClearType
function customFades() {
(function($) {
$.fn.fadeIn = function(speed, callback) {
return this.animate({opacity: 'show'}, speed, function() {
if (jQuery.browser.msie)
this.style.removeAttribute('filter');
if (jQuery.isFunction(callback))
callback();
});
};
$.fn.fadeOut = function(speed, callback) {
return this.animate({opacity: 'hide'}, speed, function() {
if (jQuery.browser.msie)
this.style.removeAttribute('filter');
if (jQuery.isFunction(callback))
callback();
});
};
})
(jQuery);
}
Et maintenant j'ai un problème lors de l'utilisation .hide() fadeIn();. Donc, ma question est comment puis-je appliquer le même type de correctif sur ce problème?
Est-ce que j'ajoute quelque chose comme $ .fn.hide = ?? Ou devrait-il plus comme $ .fn.hide(). FadeIn() = ?? – Mackelito