I would like to kindly and elegantly tell people who use Internet Explorer 6 to either update their browser or break their computers into small parts when they come to my site.
Departure:
Use conditional comment. :) http://www.quirksmode.org/css/condcom.html
This is my personal favorite: http://ie6update.com/
It is suspicious, like a legitimate Microsoft update or an Active X invitation. This should trick the dinosaurs into adapting ....
<?php $ua = browser_info(); if (($ua['msie']==6.0)) { echo "PUT HERE YOUR TEXT THAT SHOULD BE DISPLAYED IN IE6"; }else{ echo ""; } ?>
You need a div on your page, for example:
<div class='noAccess'> </div>
and jQuery:
var IE6 = (navigator.userAgent.indexOf("MSIE 6") >= 0) ? true : false; if (IE6) { $(function() { $("<div class='noAccess'>") .css({ 'height': $(window).height() }) .appendTo("body"); $("<div class='noAccessMessage'><p class='h1'>Sorry! This site doesn't support Internet Explorer 6.</p><p class='h4'>To continue, please update your browser to the latest version of FireFox or Internet Explorer using the links below.</p><table width='100%' cellspacing='0' cellpadding='0'><tr><td align='center' valign='top'>FireFox <a href='http://www.mozilla.com' target='_blank'><img src='images/Firefox-32.png' alt='FireFox' border='0' /></a><br />recommended</td><td align='center' valign='top'>Internet Explorer <a href='http://www.microsoft.com/nz/windows/internet-explorer/default.aspx' target='_blank'><img src='images/IE-32.png' alt='Internet Explorer' border='0' /><a/></td></tr></table>") .appendTo("body"); }); }
I use thishttp://www.ie6nomore.com/
Source: https://habr.com/ru/post/649871/More articles:numpy: efficiently reading a large array - performanceHow to write in Java "all these numbers are different"? - javasimple question about integers in C ++ - c ++How to use two classes with the same name in different packages? - javaA query with nHibernate where the current date is between publishDate and the expiration date - dateNHibernate criteria query help - nhibernateCross-Domain Integrated Windows Authentication in IIS for ASP.NET Website - securityEntity Framework and SQL Server syntax - sql-serverJQuery functions do not respond after adding () - javascriptscrollHeight property in FireFox - javascriptAll Articles