A mi me funciona bien as�
contenido.text="";
f1()
function f1(){
texto="Lorem Ipsum is" ;
i=0;
rapidez=10;
_root.onEnterFrame=function(){
if (texto.length > contenido.length )
{
i++;
contenido.text = texto.substr(texto.length - (i *
Math.floor(texto.length / rapidez)),texto.length);
}
else {
delete _root.onEnterFrame;
}
}
}
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Marc el XrV
Sent: martes, 13 de enero de 2004 18:08
To: [EMAIL PROTECTED]
Subject: Re: [ASNativos] problema con un bucle
yo me lo he estado mirando un rato y no consigo entender pq falla,
seguramente sea algo del algoritmo que usas...
:P
---------- Original Message -----------
From: "David de la Puente" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tue, 13 Jan 2004 16:12:27 +0100
Subject: [ASNativos] problema con un bucle
> Hola a todos! a ver si alguno puede resolverme este problemilla.
>
> Tengo un campo de texto en el que meto el un texto y quiero q
> mediante este script cargue el texto con este efecto. El problema
> est� en que me hace el bucle 2 veces y quiero que lo haga solo una
> vez, pero no s� por qu� lo hace, alguna idea?
>
> Gracias a todos!
> Un saludo
> David
>
> <code>
> contenido="";
> function f1(){
> texto="";
> contenido="";
> texto="Lorem Ipsum is simply dummy text of the printing and
> typesetting industry. Lorem Ipsum has been the industry's standard
> dummy text ever since the 1500s, when an unknown printer took a
> galley of type and scrambled it to make a type specimen book. It has
> survived not only five centuries, but also the leap into electronic
> typesetting, remaining essentially unchanged. It was popularised in
> the 1960s with the release of Letraset sheets containing Lorem Ipsum
> passages, and more recently with desktop publishing software like
> Aldus PageMaker including versions of Lorem Ipsum."; i=0;
> rapidez=10; contenido=""; _root.onEnterFrame=function(){ if
> (texto.length > contenido.length ){ i++; contenido =
> texto.substr(texto.length - (i * Math.floor(texto.length / rapidez)),
> texto.length); } else { delete _root.onEnterFrame; }// if
> }// enterFrame }// function <!------------------------------- Lista
ASNativos:
> subscripciones/desubscripciones
> http://www.sidedev.net/asnativos
> -------------------------------->
------- End of Original Message -------
<!-------------------------------
Lista ASNativos:
subscripciones/desubscripciones
http://www.sidedev.net/asnativos
-------------------------------->
<!-------------------------------
Lista ASNativos:
subscripciones/desubscripciones
http://www.sidedev.net/asnativos
-------------------------------->