Visualizzazione dei risultati da 1 a 3 su 3
  1. #1

    Rilevare IE 6 o inferiore

    Ciao a tutti,
    ho trovato diversi codici per il browser detection ma tutti fanno cose differenti rispetto a quello che serve a me, cioè classificare il browser dell'utente secondo questi due gruppi:
    - IE <= 6;
    - tutti gli altri (tra cui IE 7).

    Come posso fare?

    Grazie.

  2. #2
    codice:
    var IE = new function() {
      if(navigator.appName == "Microsoft Internet Explorer") {
        this.isIE = true;
        this.lte6 = !window.XMLHttpRequest;
        this.gte7 = !this.lte6;
      }
    }
    
    if(IE.lte6) //Fai cose solo con IE 6 o minore
    else if(IE.gte7) //Fai cose con IE 7 o maggiore

  3. #3

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.