Detectar iPhone i aplicar un estil diferent amb Javascript

La manera de detectar el iPhone (o el iPod Touch) és la següent:

if(navigator.platform=="iPhone"||navigator.platform=="iPod")
{
document.write('<style> texto{color:blue;};</style>’);
}

També he trovat una web on publica un script que detecta totttttt absolutament tooooottt (symbian, playstation, windows ce, android, iphone, ipod touch, etc, etc...): http://www.hand-interactive.com/resources/detect-mobile-javascript.htm



Envia un nou comentari

No publicaré el teu correu i em servirà per contactar-te.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Les línies i paràgrafs es trenquen automàticament.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

Més informació sobre opcions de format

CAPTCHA
Image CAPTCHA