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

brentg on 09/26/07


Tagged

css javascript ie flicker bugs imageflicker


Versions (?)


Who likes this?

4 people have marked this snippet as a favorite

alvaroisorna
robotoverlord
francisre
markupmark


JS FIX - IE6 Background image flickering


Published in: JavaScript 


JS Fix for IE6 background image flickering on mouseover's

  1. <!--[if lte IE 6]>
  2. <script type="text/javascript">
  3. //Fix IE6 background image flicker
  4. function fixIE6flicker(fix) {
  5. try {
  6. document.execCommand("BackgroundImageCache", false, fix);
  7. } catch(err) { }
  8. }
  9. window.onload = function() { fixIE6flicker(true); }
  10. </script>
  11. <![endif]-->

Report this snippet 

You need to login to post a comment.