Comunidad de diseño web y desarrollo en internet online

Reloj

Citar            
MensajeEscrito el 25 Abr 2006 04:55 pm
Estoy usando una function en flash para un reloj.
El me trae la hora del la maquina de quien navega.
Hay forma de que me mustre la hora del servidor. Con el fin de ver la hora de otro pais?

La funcion es la siquiente:

function time()
{
time = new Date();
hours = time.getHours();
hourssound = hoursdisplay;
minutes = time.getMinutes();
seconds = time.getSeconds();
_root.minutehand._rotation = 6 * minutes;
_root.hourhand._rotation = 30 * hours + 0.500000 * minutes;
if (seconds < 10)
{
seconds = "0" + seconds;
} // end if
if (minutes < 10)
{
minutes = "0" + minutes;
} // end if
mintens = substring(minutes, 1, 1);
mintens = mintens * 10;
minunits = substring(minutes, 2, 1);
hoursdisplay = hours;
if (hours > 12)
{
hoursdisplay = hours - 12;
} // end if
if (hours == 0)
{
hoursdisplay = 12;
} // end if
if (hours > 11)
{
pm = true;
}
else
{
pm = false;
} // end if
if (hoursdisplay < 10)
{
hourssound = hoursdisplay;
hoursdisplay = " " + hoursdisplay;
} // end if
hourstens = substring(hoursdisplay, 1, 1);
hoursunits = substring(hoursdisplay, 2, 1);
} // End of the function

Gracias.

JUANFELO :D

Por juanfelipe2006

0 de clabLevel



Genero:Masculino  

2004

msie
Citar            
MensajeEscrito el 25 Abr 2006 10:13 pm
la hora del servidor? pues debes usar un lenguaje de servidor (php, asp, algun otro, con el que te la lleves mejor)

saludos

Por Maikel

BOFH

5575 de clabLevel

22 tutoriales
5 articulos

Genero:Masculino   Team Cristalab

Claber de baja indefinida

firefox

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.