Ver Mensaje Individual
  #114 (permalink)  
Antiguo 12/03/2003, 23:45
Lord of ice
 
Fecha de Ingreso: marzo-2003
Mensajes: 2
Antigüedad: 21 años, 1 mes
Puntos: 0
116.- Cambiar el texto de la barra de estado

P: ¿Como puedo cambiar el texto de la barra de estado?

R: Ver ejemplo

Código PHP:
<SCRIPT LANGUAGE="JavaScript">
<!--
var 
msg="TEXTO DE LA MARQUESINA"
var delay=30
var startPos=100
var timerID=null
var timerRunning=false
var pos=0
StartScrolling
()
function 
StartScrolling(){
    
StopTheClock()
    for (var 
0startPosi++) 
    
msg=" " msg
    DoTheScroll
()
}
function 
StopTheClock(){
    if(
timerRunning)
        
clearTimeout(timerID)
    
timerRunning=false
}
function 
DoTheScroll(){
    if (
pos msg.length)
        
self.status
    
msg.substring(posmsg.length);
    else
        
pos=-1;
    ++
pos
    timerRunning
=true
    timerID

   
self.setTimeout("DoTheScroll()"delay)
}
</script> 

Última edición por Kaopectate; 17/03/2003 a las 11:19