Ver Mensaje Individual
  #1 (permalink)  
Antiguo 22/10/2012, 14:33
helena71
 
Fecha de Ingreso: julio-2012
Ubicación: Colombia
Mensajes: 53
Antigüedad: 12 años, 7 meses
Puntos: 0
Efecto desvanecido

Compañeros por aqui molestando nuevamente

Tengo esta funcion que trabaja muy bien, entrega la respuesta en pantalla muy bien.

Mi duda es la siguiente, ¿existe alguna forma de que al presentar la respuesta en pantalla no aparezca instantaneamente, sino que vaya apareciendo hasta visualizarse plenamente?

Me explico, el script respuesta.php de esta funcion entrega un mensaje que dice "PROCESADO", el mensaje aparece instantaneamente en letra de color negro, yo quiero que el mensaje aparezca desde un color traparente pasando por un gris hasta llegar al negro.

Este el codigo que tengo

Código HTML:
Ver original
  1. function objetoAjax(){
  2.     var xmlhttp=false;
  3.     try {
  4.         xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
  5.     } catch (e) {
  6.         try {
  7.            xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  8.         } catch (E) {
  9.             xmlhttp = false;
  10.         }
  11.     }
  12.  
  13.     if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
  14.         xmlhttp = new XMLHttpRequest();
  15.     }
  16.     return xmlhttp;
  17. }
  18.  
  19.  
  20. function respuesta(){
  21.  
  22.     var Respuesta = document.getElementById('div_respuesta');
  23.  
  24.     ajax=objetoAjax();
  25.     ajax.open("GET", 'respuesta.php');
  26.     ajax.onreadystatechange=function() {
  27.         if (ajax.readyState==4) {
  28.          Respuesta.innerHTML = ajax.responseText;
  29.         }
  30.     }
  31.     ajax.send(null)
  32. }

Gracias