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
-------------------------------->