Argi nenervina, kai sukurtos svetainės dizainą reikia prekurti ir pritaikyti senesnėms Internet Explorer versijoms? Aš to nebedarau, tiesiog informuoju juos, kad jų naršyklė neatitinka interneto standartų:
function ieversion() {
ereg(‘MSIE ([0-9]\.[0-9])’,$_SERVER['HTTP_USER_AGENT'],$reg);
if(!isset($reg[1])) {
return -1;
} else {
return floatval($reg[1]);
}
}
$ieversion=ieversion();
if ($ieversion>0&$ieversion<strong>Jūs naudojate interneto standartų neatitinkančią pasenusią naršyklę Internet Explorer ‘.$ieversion.’, todėl puslapį matote iškraipytą. Atnaujinkite, arba naršykite su <a href="”http://www.mozilla-europe.org/lt/firefox/”"><span style="text-decoration: underline;">Firefox</span></a> arba <a href="”http://www.opera.com/”"><span style="text-decoration: underline;">Opera</span></a> arba <a href="”http://www.apple.com/safari/download/”"><span style="text-decoration: underline;">Safari</span></a> arba <a href="”http://www.google.com/chrome/”"><span style="text-decoration: underline;">Chrome</span></a>.<strong></strong></strong>
’;};
Tai atrodo maždaug taip:





Post a Comment