Stopping Background Images Flicker In IE6 On Hover

When you really start getting into CSS, you really start to hate IE6....  Personally, one of the most annoying things I have found is if you use a background image on a link, when you hover over the link in IE6 the background image seems to disappear then re-appear.. A flickering effect.

A quick and quite brutal way to get round this is to add the following to you code, either add it to the page as shown below or just just it in your external JavaScript file

[CODE]<script type="text/javascript">
//<![CDATA[
try {
  document.execCommand('BackgroundImageCache', false, true);
} catch(e) {}
//]]>
</script>[/CODE]

Add comment


 

[b][/b] - [i][/i] - [u][/u]- [quote][/quote]