Ver Mensaje Individual
  #2 (permalink)  
Antiguo 24/10/2010, 06:57
Anonimo12
 
Fecha de Ingreso: abril-2009
Ubicación: En foros del web, normalmente en Web general, HTML y CSS.
Mensajes: 258
Antigüedad: 15 años
Puntos: 3
Respuesta: Detectar navegador del visitante

Prueba con esto:

Cita:
<SCRIPT LANGUAGE="JavaScript">
<!-- if(navigator.appName.indexOf("Netscape") != -1)
{
document.write("<FONT COLOR=blue>");
document.write("Estas utilizando el Netscape");
document.write("</FONT>");
}
if(navigator.appName.indexOf("Microsoft Internet Explorer") != -1)
{
document.write("<FONT COLOR=blue>");
document.write("Estas utilizando el Internet Explorer");
document.write("</FONT>");
}
//-->
</SCRIPT>
Pon los navegadores que quieras que se detecten añadiendo antes de "//-->":

Cita:
if(navigator.appName.indexOf("NOMBRE CORRECTO DEL NAVEGADOR") != -1)
{
document.write("<FONT COLOR=blue>");
document.write("MENSAJE QUE INDICA EL NAVEGADOR QUE USAS");
document.write("</FONT>");
}


Saludos :)

Última edición por Anonimo12; 24/10/2010 a las 07:03