
01/02/2002, 17:48
|
 | | | Fecha de Ingreso: diciembre-2001
Mensajes: 5.286
Antigüedad: 23 años, 4 meses Puntos: 1 | |
Re: Como hago para..? ;) por ahi encontre esto, aunque deberias preguntar en el foro de jscript
salu2 :)
Para poner esta Javascript sigue estas instrucciones:
--------------------------------------------------------
1. Pega este codigo en la etiqueta de <body >.
<body onload="start()">
--------------------------------------------------------
2. Luego pega esta script entre las etiquetas <body> y </body>
<script language="JavaScript"><!--
<!--
function start(){
inicio = new Date();
seg = inicio.getSeconds();
time();
}
function time(){
inicio2 = new Date();
seg2 = inicio2.getSeconds();
setTimeout('time()');
titulo = (seg2 - seg);
resulf2 = titulo;
resulf = resulf2 - 20;
suma = seg - 60;
if (titulo <=-1){
resulf2 = seg2 - suma
resulf = resulf2 - 20;
}
letra = 'Tiempo restante ';
total =resulf*-1;
document.title=letra+total+' segundos';
window.status=letra+total+' segundos';
if (total <= '0'){
window.close();
}
if (total == '5'){
document.bgColor='#FFEEEE';
}
}
// --></script>
--------------------------------------------------------
<embed src="http://www.autocar.com.mx/images/logo.swf" type="application/x-shockwave-flash" width="468" height="60" play="true" wmode="transparent" menu="false" loop="true"> |