Ver Mensaje Individual
  #158 (permalink)  
Antiguo 04/11/2003, 07:44
Avatar de epa2
epa2
 
Fecha de Ingreso: abril-2002
Ubicación: Málaga
Mensajes: 1.475
Antigüedad: 22 años
Puntos: 9
160.- Scroll (marquesina) de texto

P: ¿Como puedo colocar un scroll de texto (marquesina) en mi página?

Créditos : Bravenet

R:

Código PHP:
<html>
<
head>
<
script language="javascript">
<!--
var 
bannerID=0
function text(msg,ctrlwidth) {
        
msg " --- "+msg
        newmsg 
msg
        
while (newmsg.length ctrlwidth) {
                
newmsg += msg
        
}
        
document.write ('<FORM NAME="Scrolltext">');
        
document.write ('<CENTER><INPUT NAME="text" VALUE= "'+newmsg+'" SIZE= '+ctrlwidth+' ></CENTER>');
        
document.write ('</FORM>');
        var 
bannerID null
        rollmsg
()
}
function 
rollmsg() {
      
NowMsg document.Scrolltext.text.value
        NowMsg 
NowMsg.substring(1,NowMsg.length)+NowMsg.substring(0,1)
        
document.Scrolltext.text.value NowMsg
        bannerID 
setTimeout("rollmsg()",100)//change the number 100 to represent the speed of the scroll. The larger the number the slower it moves
}
// -->
</script>

</head>

<body>
<script>
<!--
msg = " AQUI COLOCA EL TEXTO DEL SCROLL HORIZONTAL (MARQUESINA) "
ctrlwidth = "75" //change this number to the length you would like the message box to be
text(msg,ctrlwidth);
// -->
</script>

</body>
</html> 

Un saludo a todos
__________________

***Aprendiz de todo y maestro de nada***

Última edición por Kaopectate; 06/11/2003 a las 15:10