Tema: get time!
Ver Mensaje Individual
  #2 (permalink)  
Antiguo 30/03/2002, 09:25
jlmm
 
Fecha de Ingreso: julio-2001
Ubicación: Internet
Mensajes: 1.690
Antigüedad: 22 años, 8 meses
Puntos: 1
Re: get time!

Hola!,

Mira El Codigo:

<script>
<!-- // Tiempo de pemanencia

var txtP;
var segun2=0;
var minut2=0;
var horas2=0;

function tPermanencia()
{
var txts2='';
var txtm2='';
segun2+=1;
if(segun2==60)
{
segun2=0;
minut2+=1;
}
if(minut2==60)
{
minut2=0;
horas2+=1;
}
if(segun2<10)
{
txts2='0';
}
if(minut2<10)
{
txtm2='0';
}
txtP=' '+horas2+':'+txtm2+minut2+':'+txts2+segun2
setTimeout("tPermanencia()",1000)}
tPermanencia()

function mostrar()
{
alert("Estuviste En La Pagina: "+txtP);
}
//--></script>

Y Llamas La Funcion mostrar() Desde Un Boton, Enlace O Cuando El Usuario Deje La Pagina Segun Quieras:

<BODY onunload="mostrar()">

Esto Mostrara El Mensaje Del Tiempo Cuando El Usuario Salga De La Pagina.

<CENTER><IMG SRC="http://www.galeon.com/jlmnetwork/FWPD.jpg"><BR><FONT COLOR=Black SIZE=2><I>"No Hay Cosas Imposibles, Solo Hombres Incapaces"</I></FONT></CENTER>