Red de código fuente de Japón
Función runClock() {
var hoy = nueva fecha();
var display = tolocalestring();
if(documento.capas){documento.capas.reloj en vivo.escribir(mi reloj)
documento capas. > p>
}else if(document.all)
liveclock.innerHTML=display
setTimeout("runClock()", 1000)
}
lt
Cadena userGuid =
if(session . get atributo(" guía de usuario 1 ")!=null){
guid de usuario = sesión. obtener atributo("guid de usuario 1"). toString();
}
int comprobar = 0;
verificar = nuevo DayRemindCheck(). obtener check(guid de usuario);
if (check gt0){
gt
Window.open ("dayreminder.jsp", "Recordatorio diario", "barra de herramientas = no, barra de menú = no, barras de desplazamiento = sí, redimensionable = sí, ubicación = no, estado = no, ancho = 500, alto = 300 ";
lt } gt
lt! -Inicio
var ahora = new Date();
Var mes_array = new Array("Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre");
document write(" lt; nombre del formulario = fecha _ lista gt. Bgcolor lttable = ancho plateado = 250 gt.
lttr gt ltTD width = 250 >;");
document . write(" lt; select name = mes onchange = change _ mes(this . options . selectedindex)>
for(I = 0; iltmonth_array.length; i)
{
if (now.getMonth()!= i)
{ escribir documento. (" lt; valor de opción = " i " > mes _ matriz[I]); }
Otro
{ documento . write(" lt; valor de opción = " I " seleccionado gt;" mes _ array[I]);}
}
document.write(" lt;/select >);
document . " lt;/TD gt; ltTD >);
document . write(" lt; seleccione nombre = año en cambio = cambio _ año(this . opciones[this . opciones . índice seleccionado] ) gt;);
for(I = 1950;ilt3000;i)
{
si (now.getYear()!= i)
{ documento . escribir(" lt; valor de opción = " i " > I); }
Otro
{ documento . escribir(" lt; valor de opción = " I " seleccionado gt ; " I); }
}
document . write(" lt;/select gt; lt/TD gt; lt/tr gt; lttr gt lttd colspan = 2 gt lt centro >);
documento . write(" lt; tabla bgcolor = borde blanco = 0 espacio entre celdas = 0 relleno de celdas = 0 ancho = 252 gt; lttr bgcolor = alineación gris = centro gt ");
documento . write(" lt; td gt ltfont color=silvergt.
1 ;)
}
documento .escribir(" lt; /tr >;);
}
documento .escribir( " lt;/table >);
document.write(" lt;/center gt; lt/from gt; lt/TD gt; lt/tr gt; lt/table >);
var show _ Fecha = nueva Fecha();
Función set_cal(show_date)
{
comenzar _ día = nueva Fecha(mostrar _ Fecha . getyear(), show_date.getMonth(), 1);
comienzo_día_fecha = inicio_día();
fin_día = nueva fecha(. show_Date.getyear(), show_date.getMonth() 1, 1);
Contando días = (día de finalización - día de inicio)/1000/60/60/24;
input_table (begin_day_date, count_day);
}
set_cal(show_date);
Función input_table(begin, count)
p>
{
init();
j = 0;
if (comenzar!= 0){ I = comenzar-1;} else{i =6}
for(c = 1; c lt cuenta 1; c )
{
colum _ nombre = eval(" d " I " r " j);
if((now . getdate()= = c) amp; amp(show _ date . getmonth()= = now . getmonth()) amp; amp(show _ date . getyear() = = ahora. getyear()) { columna _ estilo . color de fondo = " azul "; columna _ nombre . texto interno = c;
i
if(I = = 7){ I = 0;}
}
}
Función init()
{
for(j = 0; j lt6; j )
{
for(I = 0;ilt7;i)
{
colum _ nombre = eval(" d " I " r " j
p>
colum_name.innerText =
colum_name style .color de fondo = " ";
colum_name color = " ";
colum_name .color = " "; p>
}
}
}
Variable de función.
Change_month(sel_month)
{
show _ Date = new Date(show _ Date . getyear(), sel_month, 1
set _ cal(); show_date);
}
Función cambio_año(select_year)
{
sel_año = sel_año.valor
show_date = new Date(sel_year, show_date.getMonth(), 1);
set_cal(show_date);
}
//End- gt ;
lt/script gt;