Ver Mensaje Individual
  #6 (permalink)  
Antiguo 02/05/2011, 18:03
Avatar de MarkFL
MarkFL
 
Fecha de Ingreso: mayo-2011
Mensajes: 85
Antigüedad: 13 años
Puntos: 4
Respuesta: Contenido segun dia y hora

Igual estoy buscando algo similar y hasta ahora no he encontrado una buena solucion yo tengo este codigo lo hace por hora pero necesito que lo haga por dia y hora al mismo tiempo:

Código Javascript:
Ver original
  1. <SCRIPT language=JavaScript>
  2. var hoy=new Date();
  3. x=hoy.getHours();
  4. dia=hoy.getDate();
  5.  
  6. if(x>=0 && x<6) {
  7. document.write("<small><font color='#89A4FF' face='Arial'>MÚSICA CONTINÚA</font></small>")
  8. } else
  9. if( x>=6 && x<6.30 ) {
  10. document.write("<small><font color='#89A4FF' face='Arial'>SENTIMIENTO MEXICANO CON MARISOL</font></small>")
  11. }
Alguien sabe como hacerlo?