Here's a chart showing ONLY Internet Explorer visits to my blog over the last few weeks:
I'm bummed to see that nearly 20% (17.96%, in fact) of my visitors are using IE6. (Interesting that 8% are already using IE8!)
There's a great website that's attempting to deal with this and get folks off of IE6, called http://www.stoplivinginthepast.com. It all started like this and spread over Norway like wildfire. Hopefully it'll spread over the rest of the world and we can all add one less browser we need to test against.
There's lots of ways you can add a warning to your website or blog. The EASIEST way would be to add some HTML like this: (modified from examples posted here)
<!--[if lte IE 6]><style type="text/css">#ie6msg{border:3px solid #c33; margin:8px 0; background:#fcc; color:#000;}#ie6msg h4{margin:8px; padding:0;}#ie6msg p{margin:8px; padding:0;}#ie6msg p a.getie7{font-weight:bold; color:#006;}#ie6msg p a.ie6expl{font-weight:bold; color:#006;}</style><div id="ie6msg"><h4>Did you know that your browser is out of date?</h4><p>To get the best possible experience using my website I recommend that you upgrade your browser to a newer version. The current version is <a class="getie7" href="http://www.microsoft.com/windows/downloads/ie/getitnow.mspx">Internet Explorer 7</a> or <a class="getie7" href="http://www.microsoft.com/windows/Internet-explorer/beta/default.aspx">Internet Explorer 8 (Beta)</a>. The upgrade is free. If you’re using a PC at work you should contact your IT-administrator. Either way, I'd personally like to encourage you to stop using IE6 and try a more secure and Web Standards-friendly browser.</p><p>You could also try some other popular browsers like <a class="ie6expl" href="http://mozilla.com">FireFox</a> or <a class="ie6expl" href="http://www.opera.com">Opera</a>.</p></div><![endif]-->
There are many plug-ins for different blog engines posted there as well. However, adding text like this is easy because it uses some built in crazy detection code that is unique to Internet Explorer (and oft-maligned) using HTML comments. Note the first line of the code has this weird thing: <!--[if lte IE 6]> called a conditional comment. This is easy to do, just add the text above to your blog's template. There's no server-side requirement at all.
If you're using DasBlog for your blog engine, as I am, just add the text above to the top of your hometemplate.blogtemplate file and you're all set.
The downside is that it's roughly 1000 bytes, but it's temporary. Another technique would be to sniff the user's browser on the server side and only emit this text when they are running IE6 or below.
Now, it's your turn!
Scott Hanselman's Productivity Tips Video
Scott at DevReach in Bulgaria in October
Developer Stand up Comedy - Coding 4 Fun
TechDays/DevDays Netherlands and Belgium:
Posts by Category Posts by Month
Greatest Hits Dev Tools List