Ver Mensaje Individual
  #6 (permalink)  
Antiguo 13/05/2009, 17:13
Avatar de pato12
pato12
 
Fecha de Ingreso: septiembre-2007
Ubicación: Salta
Mensajes: 1.620
Antigüedad: 17 años, 5 meses
Puntos: 101
Respuesta: firefox si > IE no

Un ejemplo para que no se carge con IE:
Código javascript:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  5. <title>No IE</title>
  6. <script type="text/javascript">
  7. <!--
  8. onload=function(){
  9.     if(!(window.attachEvent&&navigator.userAgent.indexOf('Opera') === -1)){
  10.         document.getElementById('cartelMal').style.display='none';
  11.         document.getElementById('web').style.display='block';
  12.     }
  13. };
  14. -->
  15. </script>
  16. <style type="text/css">
  17. #cartelMal {
  18.     background-color: #FFD9D9;
  19.     padding: 5px;
  20.     border: 1px solid #FF0000;
  21. }
  22. </style>
  23. </head>
  24.  
  25. <body>
  26. <div id="cartelMal">Usa IE y no puedes ver esta web!</div>
  27. <div id="web" style="display:none;">No usas IE! que bien. ahora puedes ver esta web.<br />
  28. contenido<br />
  29. ...<br />
  30. ...<br />
  31. ...<br />
  32. ...<br />
  33. ...<br />
  34. ...<br />
  35. ...<br />
  36. ...<br />
  37. ...<br />
  38. ...<br />
  39. ...<br />
  40. ...<br />
  41. </div>
  42. </body>
  43. </html>
y si queres Julcar que solo se vea con IE, solo sacale el ! al if y cambia los carteles.
Suerte
Salu2
__________________
Half Music - www.halfmusic.com