Thanks to Benjamin Michael Novakovic for this fix!
While using the jQuery javascript library today at work, I noticed a glitch under IE7. When fading a html node with the .fadeIn() and .fadeOut() functions in jQuery, IE drops the windows Cleartype rendering; which results in very ugly text. This problem appears to be very common, but no one has a nice solution for the problem.
The most common way to solve this problem is by removing the
filter
CSS attribute. In normal javascript, it would look like this:document.getElementById('node').style.removeAttribute('filter');and in jQuery, it would look like this:
$('#node').fadeOut('slow', function() { this.style.removeAttribute('filter'); });
via Benjamin Michael Novakovic » jQuery fadeIn/fadeOut IE cleartype glitch.
no this is not working . its giving a continuous error in FireFox … For that solution you have to check a browser condition before putting this code.
I do this:
if (jQuery.browser.msie)
this.style.removeAttribute(“filter”);
Thanks! The jQuery code worked for me. I used it as a callback within the fade function. Damn you IEEEEE!
no working !!!