Ver Mensaje Individual
  #4 (permalink)  
Antiguo 21/06/2004, 11:49
Avatar de JavierB
JavierB
Colaborador
 
Fecha de Ingreso: febrero-2002
Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 22 años, 3 meses
Puntos: 772
Hola, raulco.

¿Te serviría este código...?
Código HTML:
<html>
<head>
<script>
function ini() {
	fecha = new Date();
	d = fecha.getDate();
	m = fecha.getMonth();
	a = fecha.getYear();
	document.getElementById('dia').selectedIndex=d-1;
	document.getElementById('mes').selectedIndex=m;
	document.getElementById('anio').selectedIndex=a-2004;
}
</script>
</head>

<body onload="ini()">
<select id="dia">
<option>1</option>
<option>2</option>
<option>30</option>
<option>31/option>
</select>
<select id="mes">
<option>enero</option>
<option>febrero</option>
<option>noviembre</option>
<option>diciembre</option>
</select>
<select id="anio">
<option>2004</option>
<option>2005</option>
</select>
</body>
</html> 
Saludos,