English (Global) > General Discussion

NO IE6

(1/1)

TheGodOfTheNewWorld:
Why IE6 is sucks?



How do we get rid of it?


--- Code: (php) ---<head>
...
<?php
function NOIE6() {
 $start = date(&#39;U&#39;, mktime(-12, 0, 0, 10, 18, 2009));
 $now = time() + date(&#39;Z&#39;) * -1;
 $isIE6 = eregi("MSIE 6\.[0-9]+", $_SERVER[&#39;HTTP_USER_AGENT&#39;]);

 if ($isIE6 && ($now >= $start)) return true;
 return false;
}
// From this day, IE 6 doesnt work for this website
if ( !NOIE6() ) {
 echo &#39;<link rel="stylesheet" type="text/css" href="styles.css" />&#39;;
}
?>
...
</head>
<body>
<!--[if IE 6]>
<div id="users-ie">
Your version of Internet Explorer is obsolety <a href="http://www.microsoft.com/windows/products/winfamily/ie/default.mspx">look for the updates</a> or use another web browser <a href="http://www.mozilla.com" title="Firefox web browser">Firefox</a>, <a href="http://www.opera.com/" title="Opera Browser">Opera</a>, <a href="http://www.apple.com/safari/" title="Apple Safari">Safari</a> o <a href="http://www.google.com/chrome" title="Google Chrome">Chrome</a>
</div>
<![endif]-->
....
</body>
--- End code ---

well U can edit the parts of text

this code is from anieto2k

z_o_o_m:
nice, but I don't need this ;)
there is some bug in IE6, my new site doesn't work correctly in IE6 and I need to make some special CSS to fix it .. and I don't know how :) not this

but thanks

Navigation

[0] Message Index

Reply

Go to full version