Ver Mensaje Individual
  #2 (permalink)  
Antiguo 04/02/2012, 12:18
Avatar de emprear
emprear
Colaborador
 
Fecha de Ingreso: junio-2007
Ubicación: me mudé
Mensajes: 8.388
Antigüedad: 16 años, 10 meses
Puntos: 1567
Respuesta: No mostrar algo en Chrome y Firefox

Con esta script en php
http://foros.emprear.com/deteccion-browser/
Muy recomendable si queres multiples condiciones a traves del sitio,
Algo más sencillo, pero aplicable concretamente a tu problema, con javascript

Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <title>titulo</title>
  5. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  6.  
  7. <style type="text/css">
  8. /*<![CDATA[*/
  9. iframe#contenido {
  10. display: block;
  11. }
  12.  
  13. /*]]>*/
  14. <script type="text/javascript">
  15. //<![CDATA[
  16. function NoMostrar(){
  17. var cadena = /(Firefox|Chrome)/i;
  18. var coincide = cadena.exec(navigator.userAgent);
  19. if (coincide != null) {
  20. document.getElementById('contenido').style.display = "none";
  21. }
  22. }
  23. //]]>
  24. </head>
  25. <body onload="NoMostrar();">
  26. <iframe id="contenido" width="200" height="300" src="http://emprear.com" frameborder="1"></iframe>
  27. </body>
  28. </html>

Saludos
__________________
La voz de las antenas va, sustituyendo a Dios.
Cuando finalice la mutación, nueva edad media habrá
S.R.