Forum - File & Image Uploader
English (Global) => General Discussion => Topic started by: TheGodOfTheNewWorld on 19-10-2009, 20:25:39
-
Why IE6 is sucks?
(http://www.anieto2k.com/wp-content/uploads/2009/10/acid3-ie6.jpg)
How do we get rid of it?
<head>
...
<?php
function NOIE6() {
$start = date('U', mktime(-12, 0, 0, 10, 18, 2009));
$now = time() + date('Z') * -1;
$isIE6 = eregi("MSIE 6\.[0-9]+", $_SERVER['HTTP_USER_AGENT']);
if ($isIE6 && ($now >= $start)) return true;
return false;
}
// From this day, IE 6 doesnt work for this website
if ( !NOIE6() ) {
echo '<link rel="stylesheet" type="text/css" href="styles.css" />';
}
?>
...
</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>
well U can edit the parts of text
this code is from anieto2k
-
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