Con questo script effettuo un controllo sul browser usato.codice:if (document.layers){ //Netscape 4.x document.write("<link rel='stylesheet' href='/css/mozilla.css' type='text/css'>"); } else if (document.all && !document.getElementById) { // solo Explorer 4 document.write("<link rel='stylesheet' href='/css/explorer.css' type='text/css'>"); document.write("<link rel='stylesheet' href='/css/dettagli_2.css' type='text/css'>"); } else if (document.getElementById){ //Netscape 6.x, Explorer 5 e 6, Opera 5 e 6, Mozilla if (navigator.appName == "Netscape") { document.write("<link rel='stylesheet' href='/css/mozilla.css' type='text/css'>"); document.write("<link rel='stylesheet' href='/css/dettagli_2_mozilla.css' type='text/css'>"); } else { document.write("<link rel='stylesheet' href='/css/explorer.css' type='text/css'>"); document.write("<link rel='stylesheet' href='/css/dettagli_2.css' type='text/css'>"); } } //-->
la mia difficoltà come si vede è intercettare la versione di Explorer 7..
come posso fare ?
Grazie.

Rispondi quotando