Ver Mensaje Individual
  #2 (permalink)  
Antiguo 01/12/2009, 04:53
hagoromo
 
Fecha de Ingreso: noviembre-2009
Mensajes: 8
Antigüedad: 15 años, 2 meses
Puntos: 0
Respuesta: Como poner color en una funcion

Pues si metes el texto dentro de un tag, por ejemplo
un 'font', dale estilo así:

Código:
Function Mostrar() {
    for (x=0;x<5;x++) {
        document.write("<font color='#FF0000'>Totales "+suma[x] + "</font>");
        document.write("<br>");
    }
}