Ver Mensaje Individual
  #1 (permalink)  
Antiguo 05/12/2010, 14:25
Avatar de phercin
phercin
 
Fecha de Ingreso: febrero-2009
Ubicación: Pachuca Hidalgo
Mensajes: 150
Antigüedad: 15 años, 3 meses
Puntos: 1
Información Formato de texto a Fecha en script

Alguien sabe como puedo dar formato de color y tamaño al texto de esta fecha?
o algun otro codigo?
gracias...


Código:
<script languaje="JavaScript">
var mydate=new Date()
var year=mydate.getYear()
if (year < 1000)
year+=1900
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym<10)
daym="0"+daym
var dayarray=new Array("Domingo","Lunes","Martes","Miercoles","Juev es","Viernes","Sabado")
var montharray=new Array("Enero","Febrero","Marzo","Abril","Mayo","Ju nio","Julio","Agosto","Septiembre",
"Octubre","Noviembre","Diciembre")
document.write("<large><font color='0000FF' face='verdana'>"+dayarray[day]+" "+daym+" de "+montharray[month]+" de "+year+"</font></small>")
</script>