September 9, 2010

JQUERY, Warning Users that IE6 For Browser Rejection

Copy this and save it to jquery.ie6.js
(function($){
$(function(){
var message = "This site does not support Internet Explorer 6. Please consider downloading a newer browser.",
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 the inclusion of jQuery of course) of your page:

No comments:

Post a Comment