Solving IE6 Flicker Bug
Web Design November 17th, 2006In CSS, if you have ever worked with background-image rollovers, you will no doubt have found that Internet Explorer 6 tends to flicker when using “a:hover”.
After researching, the best way to combat this is to use an external javascript file in your
section, like so:<script type="text/javascript" src="/js/common.js"></script>
Then in common.js, use the following magic:
ie = document.all;
if(ie)
{
try {
document.execCommand("BackgroundImageCache", false, true);
} catch(err) {}
}
Your buttons should no longer flicker! Incidentally, IE7 has resolved this issue.
Leave a Reply
You must be logged in to post a comment.