Ver Mensaje Individual
  #10 (permalink)  
Antiguo 20/07/2010, 05:23
Avatar de _cronos2
_cronos2
Colaborador
 
Fecha de Ingreso: junio-2010
Mensajes: 2.062
Antigüedad: 13 años, 10 meses
Puntos: 310
Respuesta: Modificar código con getHours()

Creo que algo así funcionaría:
Código Javascript:
Ver original
  1. hoy = new Date();
  2. dia = hoy.getDay();
  3. hora =  hoy.getHours;
  4. minu = hoy.getMinutes();
  5. if(dia > 1 && dia < 6 && ((hora==16 && minu >= 30) || hora > 16) && ((hora == 20 && minu <= 30) || hora < 20){
  6.  alert ('si');
  7. }else{
  8.  alert ('no');
  9. }
Saludos (:
__________________
" Getting older’s not been on my plans
but it’s never late, it’s never late enough for me to stay. "
Cigarettes - Russian Red