Copie o código do código da seguinte forma:
<div>
<select name = "yyyy" onchange = "yyyyymm (this.value)" >>
<opção value = ""> Selecione o ano </pption>
</leclect>
<select name = "mm" onchange = "mmdd (this.value)">
<opção value = ""> selecione Lua </pption>
</leclect>
<select name = "" "
<opção value = ""> selecione DIA </pption>
</leclect>
</div>
<Script Language = "JavaScript">
função window.onload () {
Stryyyy = document.form1.yyyy.outerhtml;
strmm = document.form1.mm.outerhtml;
strdd = document.form1.dd.outerhtml;
Monhead = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
// Vamos dar o conteúdo do ano do ano.
var y y = new Date ().
var str = stryyyyy.substring (0, stryyyyyyyyyy -length -9);
para (var i = (y -30); i <(y+30); i ++) // prevalecente deste ano, nos primeiros 30 anos, nos próximos 30 anos
{{
str + = "<opção value = '" + i + "'>" + i + "ano" + "</pption>/r/n";
}
document.form1.yyyy.outerhtml = str + "</leclect>" ";
// a caixa de suspensão de Fuyue
var str = strmm.substring (0, strmm.Length -9);
for (var i = 1; i <13; i ++) {
str + = "<opção value = '" + i + "'>" + i + "mês" + "</pption>/r/n";
}
document.form1.mm.outerhtml = str + "</leclect>" ";
document.form1.yyyy.value = y;
document.form1.mm.value = new Date ().
var n = mononheado [new Date ().
if (new date (). getMonth () == 1 && ispinyear (yyyyyValue) n ++;
WRITEDAY (N);
document.form1.dd.value = new Date ().
}
Função yyyymm (str) // a data muda quando o ano muda (principalmente julgando o ano do ping ping)
{{
var mmvalue = document.form1.mm.option
if (mmvalue == "") {dd.outerhtml = strdd;
var n = monenhe [mmValue - 1];
if (mmvalue == 2 && ispinyear (str)) n ++;
WriteDay (n)
}
Função mmdd (str) // link de data de mudança mensal
{{
VaryyyValue = document.form1.yyy.options [document.form1.yyyy.lectectEx].
if (str == "") {dd.outerhtml = strdd;
var n = monsenhas [str -1];
if (str == 2 && ispinyear (yyyyyValue) n ++;
WriteDay (n)
}
Função WriteDay (n) // a caixa de suspensão da data da data da escrita
{{
var s = strdd.substring (0, strdd.length -9);
for (var i = 1; i <(n+1); i ++)
s + = "<opção value = '" + i + "'>" + i + "" + "</pption>/r/n";
document.form1.dd.outerhtml = s + "</leclect>" ";
}
Função ispinyear (ano) // julgando se deve achatar o ano
{{
Retornar (0 == ano % 4 && (ano % 100! = 0 || ano % 400 == 0))
}