JavaScript - calendario dinamico

 
Vista:

calendario dinamico

Publicado por redcrom (1 intervención) el 20/10/2000 00:00:00
tengo un script que muestra un calendario y por defecto carga el mes actual
Por otro lado, tengo un select con los nombres de los meses, y un boton.

Lo que quiero hacer es que selecciones un mes, y al hacer click en el boton, me pinte ese calendario.

lo tengo casi todo hecho, pero no se que me falla cuando quiero sacar otro mes distinto al actual que me peta por todos los lados.
Si alguien tiene un script parecido o sabe como puedo solucionarlo, que responda, o me mande un mail, o que me busque por las noches en el canal #alcorcon del irc-hispano. gracias.
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:calendario dinamico

Publicado por Juan Carlos Pontaza (2 intervenciones) el 04/12/2000 00:00:00
<SCRIPT LANGUAGE="JavaScript">
<!-- Hide script from old browsers
//converts month string from form into number for use later
// (...) there´s a fix above for this that changes the month
// indexing to off-zero; this remains the same to handle any
// code expecting the array to be indexed off one.
function getMonthNumber(input)
{
if (input == "Jan")
{return "1"}
if (input == "Feb")
{return "2"}
if (input == "Mar")
{return "3"}
if (input == "Apr")
{return "4"}
if (input == "May")
{return "5"}
if (input == "Jun")
{return "6"}
if (input == "Jul")
{return "7"}
if (input == "Aug")
{return "8"}
if (input == "Sep")
{return "9"}
if (input == "Oct")
{return "10"}
if (input == "Nov")
{return "11"}
if (input == "Dec")
{return "12"}
}


// Checks if browser is Netscape 2.0 since the options array properties don´t work with Netscape 2.0x
function isBrowserSupp() {

// Get the version of the browser
version = parseFloat( navigator.appVersion );

if ( ( version >= 2.0 ) && ( version < 2.1 ) && ( navigator.appName.indexOf( "Netscape" ) != -1 ) ) {
return false;
}
else {
return true;
}
}
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar