Jakiś problem?

Wybór arkusza stylu w zależności od przeglądarki

if (strpos($_SERVER[‚HTTP_USER_AGENT’], ‚MSIE’) !== false) {
echo ‚<link rel=”stylesheet” type=”text/css” href=”style2.css”>’;
}else if (strpos($_SERVER[‚HTTP_USER_AGENT’], ‚Mozilla’) !== false) {
echo ‚<link rel=”stylesheet” type=”text/css” href=”style.css”>’;
}else if (strpos($_SERVER[‚HTTP_USER_AGENT’], ‚Opera’) !== false) {
echo ‚<link rel=”stylesheet” type=”text/css” href=”style.css”>’;
}

Dodaj komentarz

Twój adres email nie zostanie opublikowany.