Ver Mensaje Individual
  #9 (permalink)  
Antiguo 06/03/2002, 19:53
jlmm
 
Fecha de Ingreso: julio-2001
Ubicación: Internet
Mensajes: 1.690
Antigüedad: 22 años, 10 meses
Puntos: 1
Re: Me Ayudais?...

Hola!,

Es Que El Usuario(Aquel A Quien Hay Que Agradecerle Por "Todo" Segun El, Cuando En Realidad Pone Un Codigo Que No Sirve) Puso El Codigo Mal!, Le Faltan Los ";" Que Lleva Al Final Toda Linea de Codigo javascript Y Fuera De Esto Utiliza Una Funcion "initArray" Que Es Innecesaria, Codigo Corregido:

<script language="JavaScript">
<!--
var current = 0;
var x = 0;
var speed = 100;
var speed2 = 2000;

typ = new Array(6);
typ[0]="TEXTO 1";
typ[1]="TEXTO 2";
typ[2]="TEXTO 3";
typ[3]="TEXTO 4";
typ[4]="TEXTO 5";
typ[5]="TEXTO 6";

function typewrite()
{
var m = typ[current];
window.status = m.substring(0, x++) + "_";
if (x == m.length + 1)
{
x = 0;
current++;
if (current > typ.length - 1)
{
current = 0;
}
setTimeout("typewrite()", speed2);
}
else
{
setTimeout("typewrite()", speed);
}
}
typewrite();
//-->
</SCRIPT>

Lo he Probado y Funciona De Esta Manera, Lo Siento Si No Note Los Errores La Vez Pasada, La Verdad Es Que No Me Fije En El Codigo, Pero Asi Si Te Funcionara.

<HR COLOR=GRAY>
<FONT COLOR=GRAY SIZE=2><I>"No Hay Cosas Imposibles, Solo Hombres Incapaces"</I></FONT>