Ver Mensaje Individual
  #3 (permalink)  
Antiguo 30/05/2007, 07:18
Rebellion
 
Fecha de Ingreso: mayo-2007
Mensajes: 48
Antigüedad: 17 años, 9 meses
Puntos: 0
Re: Sumar dias a Fecha Actual

Hola javierB estoy usando este script:

Código:
hoy = new Date(); 
i=0; 
while (i<3) {
  hoy.setTime(hoy.getTime()+24*60*60*1000); // añadimos 1 día
  if (hoy.getDay() != 6 && hoy.getDay() != 0)
    i++;  
}
mes = hoy.getMonth()+1;
if (mes<10) mes = '0'+mes;
fecha = hoy.getDate()+ '/' + mes + '/' + hoy.getFullYear(); 
document.write(fecha);
Tengo 1 duda:

Como puedo hacer lo que te dije, al pinchar en la imagen que ponga +3, imprima la fecha en una caja de texto, al hacer click en la imagen como si fuera un hipervinculo pero sin recargar la pagina, en el momento que pinches sobre la imagen que aparezca esa fecha en la caja?