ASP.NET Cafe
new tricks every week

How to remove IE 6 background flicker

Monday, 26 January 2009 03:14 by dmitriy

I know one thing that makes cranky all web developers who still support IE 6. Usually we can hope that soon IE 6 became history ( maybe Windows 7 will be so good... and everybody use it and new IE ). But yet many designers still support IE 6. Main trouble that IE does not cache CSS background images. And that's why you see "flicker" effect on reload of you well formed css sites. To get rid of this try to add this script somewhere in the HEAD section... 

 

[code=js]

try

{document.execCommand('BackgroundImageCache', false, true);}

catch(e)

{}[/code]

 This works for me.

ps: You can see this effect good in AJAX.NET Tabs control. http://www.asp.net/AJAX/AjaxControlToolkit/Samples/Tabs/Tabs.aspx

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:  
Categories:   ASP.NET
Actions: E-mail | del.icio.us | Kick it! | DZone it! | Permalink | Comments (0) | Comment RSSRSS comment feed

Comments

Add comment


 

  Country flag

biuquote
  • Comment
  • Preview
Loading