Mugshot

Hey I'm Lee. My blog was put up to house useful nuggets I could refer back to, document my learning curves on new technologies and house tutorials I write for Umbraco and other .NET stuff.

All thoughts and comments on here are my own, and in no way reflect my employer - I also take no responsibility for spelling, grammar or terminology, so read at your own risk!

Blogs I Read

Sites I Like

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]

Back to top