We Recommend

Pro JavaScript Techniques Pro JavaScript Techniques
Pro JavaScript Techniques is the ultimate JavaScript book for the modern web developer. It provides everything you need to know about modern JavaScript, and shows what JavaScript can do for your web sites. This book doesn't waste any time looking at things you already know, like basic syntax and structures.


Posted By

1man on 09/29/06


Tagged

css javascript ie background bug flicker


Versions (?)


Who likes this?

4 people have marked this snippet as a favorite

jonhenshaw
boldfish
rnrleachryan
yetanother


Stop Annoying IE Background Image Flicker Bug


Published in: JavaScript 


URL: http://evil.che.lu/2006/9/25/no-more-ie6-background-flicker

Stop the background image flickering on IE by including this code in the header of your page. See link for more information.

  1. try {
  2. document.execCommand('BackgroundImageCache', false, true);
  3. } catch(e) {}

Report this snippet 

You need to login to post a comment.