Ver Mensaje Individual
  #7 (permalink)  
Antiguo 03/12/2008, 17:15
Slayer_sephiroth
 
Fecha de Ingreso: enero-2008
Mensajes: 111
Antigüedad: 16 años, 3 meses
Puntos: 0
Respuesta: Funcion para parrar y arrancar en un boton

function movertexto(){
if (posicion < textoabajo.length)
posicion ++;
else
posicion = 1;
string_actual = textoabajo.substr(posicion) + textoabajo.substr(0,posicion)
window.status = string_actual
if (parar)
window.clearTimeout('movertexto()',1000);
setTimeout("movertexto()",150);
}

function caja(){
textoabajo=document.form1.campotxt.value;
parar=!parar;

}