Ver Mensaje Individual
  #3 (permalink)  
Antiguo 24/09/2009, 08:10
Avatar de Adler
Adler
Colaborador
 
Fecha de Ingreso: diciembre-2006
Mensajes: 4.671
Antigüedad: 18 años, 1 mes
Puntos: 126
Respuesta: Internet explorer no puede abrir el sitio...

Hola

Para el caso que no sea externo yo uso

Código javascript:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta name="http-equiv" content="Content-type: text/html; charset=UTF-8"/>
  5. <script type="text/javascript">
  6. function funcion() {
  7. var estado = document.readyState;
  8. if (estado == 'complete' || estado == 4) { // IE o OPERA
  9. alert("completada")
  10. document.getElementById("elDiv").style.color = '#FF0000';
  11. } else {
  12. if (document.addEventListener) { // FF
  13. alert("completada")
  14. document.getElementById("elDiv").style.color = '#FF0000';
  15.    }
  16. }
  17. }
  18. </script>
  19. </head>
  20. <body onload = "funcion()">
  21. <div id="elDiv" style="color:#C9C9C9;">Este texto era de color gris, pero al estar la p&aacute;gina totalmente carga, ahora es rojo</div>
  22. </body>
  23. </html>

Suerte
__________________
Los formularios se envían/validan con un botón Submit
<input type="submit" value="Enviar" style="background-color:#0B5795; font:bold 10px verdana; color:#FFF;" />