Ver Mensaje Individual
  #1 (permalink)  
Antiguo 21/09/2006, 08:45
Avatar de thrash
thrash
 
Fecha de Ingreso: marzo-2002
Ubicación: Talca-Chile
Mensajes: 254
Antigüedad: 22 años, 11 meses
Puntos: 1
Cuenta regresiva compatible con Firefox

Que tal , pasa que tengo este código de una cuenta regresiva
Código:
<SCRIPT LANGUAGE="JavaScript">
<!--  
function getRemaining() {
  today = new Date();
  targetdate = new Date("October 28, 2006"); 
  targetdate.setYear(today.getYear()); 
  milliseconds = (24 * 60 * 60 * 1000);
  remaining = ((targetdate.getTime() - today.getTime()) / milliseconds); 
  remaining = Math.round(remaining);
  }
// -->
</SCRIPT>
<body bgcolor="#81b11b" text="#FFFFFF" topmargin="0">
<b><font face="Verdana, Arial, Helvetica, sans-serif" size="2"> 
<SCRIPT LANGUAGE="JavaScript">
<!-- 
getRemaining(); 
document.write("",remaining," días para el encuentro 2006!");
// -->
</SCRIPT>
</font>
, el cual se ve bien en Explorer, pero en Fire Fox muestra un "resultado" erroneo este -693924 días para el encuentro 2006! , mi consulta hay manera de hacerlo compatible con FireFox, o bien alguien tiene uno que sea compatible con ambos navegadores.

Gracias
__________________
Foro Forestal Maderero
Bosque y +