JQUERY, Warning Users who do not support IE6 need

I am building an application and have no intention of supporting IE6 at this time. To be fair for IE6, I want IE6 users to know this and not think that the application was created by incompetent developers.

I was hoping that a JQUERY plugin would be available that would provide a nice reminder of the StackOverflow style at the top of the page, plug and play, and I will finish. Surprisingly, I do not find such a plugin.

Does anyone know of any plugins that could do IE6 detection, and how nice to have a warning? This seems to be a common thing these days.

thanks

+7
javascript jquery internet-explorer jquery-plugins
source share
4 answers

Use conventions and CSS

If you have a header include file (or something like layout in Rails), just use IE conventions:

 <body> <!--[if lte IE 6]> <div id="ie-warning">This site does not support IE6</div> <![endif]--> 

And then use a simple style in your stylesheet.

Or if you really want jQuery:

Here is a simple jQuery script that does what you want. Copy this and save in jquery.ie6.js :

 (function($){ $(function(){ var message = "This site does not support Internet Explorer 6. Please consider downloading a <a href='http://firefox.com'>newer browser</a>.", div = $('<div id="ie-warning"></div>').html(message).css({ 'height': '50px', 'line-height': '50px', 'background-color':'#f9db17', 'text-align':'center', 'font-family':'Arial, Helvetica, sans-serif', 'font-size':'12pt', 'font-weight':'bold', 'color':'black' }).hide().find('a').css({color:'#333'}).end(); div.prependTo(document.body).slideDown(500); }); })(jQuery); 

And then put this in the head (after turning on jQuery, of course) of your page:

 <!--[if lte IE 6]> <script src="jquery.ie6.js" type="text/javascript" charset="utf-8"></script> <![endif]--> 

Demo

This demo will be displayed in all browsers , but if you enable it, as I have shown conditional comments between if lte IE 6 , it will only be displayed in IE6 and older versions of IE.

+24
source share

IE6Update . It is lightweight and autonomous; it doesn't need jQuery, but it will work fine if you use jQuery.

+4
source share

I know this was answered, but I just found this jQuery plugin so you can customize the customized message.

http://politeiewarning.blogspot.com/

+1
source share

view jQuery.browser utility

 if ($.browser.msie && jQuery.browser.version.substr(0,1)=='6') ... 
0
source share

All Articles